Catch declarations in funny places

Jerry James james at xemacs.org
Fri Jun 9 14:16:54 EDT 2006


Since we've had several instances of variable declarations not at the
top of a block (which is allowed by C99 and C++, but not by the older
ANSI C rules), I would like to propose that we add
-Wdeclaration-after-statement to the default warnings used when
compiling with gcc 3.4+.  (That option did not exist in gcc 3.3 and
earlier.)
-- 
Jerry James, Assistant Professor        james at xemacs.org
Computer Science Department             http://www.cs.usu.edu/~jerry/
Utah State University




More information about the XEmacs-Beta mailing list