Re: AC_C_CONST fails with -Werror

2011-08-31 Thread Paul Eggert
On 08/31/11 17:06, Dan Kegel wrote: > Here's a patch that seems to do the trick, only very lightly tested. Thanks. Ralf Wildenhues and Ralf Corsepius are both correct that people shouldn't be configuring with -Werror. Still, if it's bugging people it's probably worth fixing. I installed the fo

Re: AC_C_CONST fails with -Werror

2011-08-31 Thread Ralf Corsepius
On 09/01/2011 07:49 AM, Ralf Wildenhues wrote: Hello Dan, * Dan Kegel wrote on Thu, Sep 01, 2011 at 02:06:39AM CEST: Reviving https://lists.gnu.org/archive/html/bug-autoconf/2008-11/msg7.html https://lists.gnu.org/archive/html/bug-autoconf/2008-11/msg8.html There is an argument for fix

Re: AC_C_CONST fails with -Werror

2011-08-31 Thread Ralf Wildenhues
Hello Dan, * Dan Kegel wrote on Thu, Sep 01, 2011 at 02:06:39AM CEST: > Reviving > https://lists.gnu.org/archive/html/bug-autoconf/2008-11/msg7.html > https://lists.gnu.org/archive/html/bug-autoconf/2008-11/msg8.html > > There is an argument for fixing AC_C_CONST: the way it breaks > caus

re: AC_C_CONST fails with -Werror

2011-08-31 Thread Dan Kegel
Reviving https://lists.gnu.org/archive/html/bug-autoconf/2008-11/msg7.html https://lists.gnu.org/archive/html/bug-autoconf/2008-11/msg8.html There is an argument for fixing AC_C_CONST: the way it breaks caused strange errors building one package because its config.h defined const to /**/.

Re: AC_C_CONST fails with -Werror

2008-11-07 Thread Ralf Wildenhues
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 a

AC_C_CONST fails with -Werror

2008-11-07 Thread Shevek
Hi, 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: configure:22157: checking for an ANSI C-conforming const configure:22232: g