[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_C_CONST fails with -Werror
From: |
Ralf Wildenhues |
Subject: |
Re: AC_C_CONST fails with -Werror |
Date: |
Fri, 7 Nov 2008 18:21:16 +0100 |
User-agent: |
Mutt/1.5.17+20080114 (2008-01-14) |
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