Phil Dibowitz wrote:
> I'm annoyed that gcc doesn't get angry about that stuff. It really should.
> Ah well, I'll fix it up next time I have a few minutes, won't take long.

Aha!

  The following -W... options are not implied by -Wall.  Some of them warn
  about constructions that users generally do not consider questionable, but
  which occasionally you might wish to check for; others warn about
  constructions that are necessary or hard to avoid in some cases, and there
  is no simple way to modify the code to suppress the warning.

  ...

  -Wdeclaration-after-statement (C only)
      Warn when a declaration is found after a statement in a block.  This
      construct, known from C++, was introduced with ISO C99 and is by
      default allowed in GCC.  It is not supported by ISO C90 and was not
      supported by GCC versions before GCC 3.0.


There we go. With that, I get the warnings. I've added this to the
Makefile.am along with -Wall. Sadly this has picked up a warning I *think*
is superfluous, but I'm ignoring it for now. You should be set now.

-- 
Phil Dibowitz                             [EMAIL PROTECTED]
Open Source software and tech docs        Insanity Palace of Metallica
http://www.phildev.net/                   http://www.ipom.com/

"Never write it in C if you can do it in 'awk';
 Never do it in 'awk' if 'sed' can handle it;
 Never use 'sed' when 'tr' can do the job;
 Never invoke 'tr' when 'cat' is sufficient;
 Avoid using 'cat' whenever possible" -- Taylor's Laws of Programming


Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
concordance-devel mailing list
concordance-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/concordance-devel

Reply via email to