Hello Shevek,

thanks for the report.

* Shevek wrote on Thu, Nov 06, 2008 at 03:29:17PM CET:
> 
> If CFLAGS includes -Werror, AC_C_CONST fails because the sample file
> fails to initialize some variables before use, generating warnings.
> 
> The problem is relatively simple to fix, just set some appropriate
> things to 0:

Actually, we're reluctant to change the test, because it's quite likely
that those old compilers barfed over the code only without the
initializations.

The general recommendation is to either avoid using -Werror, or to just
drop AC_C_CONST: unless you know of a system with a compiler that
doesn't support const, chances are you won't ever meet one.  These are
all just museum systems, and maybe a couple of long-running servers
(which is why AC_C_CONST hasn't been eliminated yet IIRC).

Cheers,
Ralf


Reply via email to