[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_LANG_PROGRAM and -Wstrict-prototypes -Werror
From: |
Robert Millan |
Subject: |
Re: AC_LANG_PROGRAM and -Wstrict-prototypes -Werror |
Date: |
Sun, 20 Sep 2009 16:37:22 +0200 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
> For this particular proposal, you would be breaking K&R compilation. Yes, we
> want to move to a default of requiring a C89 compiler, and only supporting
> K&R
> if the configure.ac author explicitly requested it, but applying your patch
> would break the current default of supporting K&R by default. For now, I'm
> just inclined to stick with the party line of 'if -Werror hurts, don't use
> it'.
GRUB recently switched to -Werror because this helps detecting bugs that could
otherwise be very difficult to debug (e.g. memory corruption).
For now, what we're doing is override AC_LANG_PROGRAM in aclocal.m4. Untill
you find it suitable to require a C89 compiler, is there any better option for
us to continue using -Werror? (I find a macro override less hassle than
playing with temporary CFLAGS)
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."