bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AC 2.59/2.57: AC_C_CONST breaks with -Wcast-qual -pedantic-errors on


From: Matthias Andree
Subject: Re: AC 2.59/2.57: AC_C_CONST breaks with -Wcast-qual -pedantic-errors on GCC 2.95.
Date: Thu, 22 Jan 2004 12:47:57 +0100
User-agent: Mutt/1.5.5.1i

On Wed, 21 Jan 2004, Paul Eggert wrote:

> I don't see why it's bogus.  The C standard permits it, as far as I
> can see.  C99 says (in section 6.3.2.3 paragraph 7) that a pointer to
> an object or incomplete type may be converted to a pointer to a
> different object or incomplete type, so long as the resulting pointer
> is correctly aligned.  It appears that you are invoking GCC in such a
> way that it no longer conforms to the C standard with respect to
> "const".

Indeed, I am adding -Wcast-qual to CFLAGS. I shall call AC_C_CONST
before adding to CFLAGS, that works unless the user passes in
"-pedantic-errors -Wcast-qual".

Thank you for the quick turnaround.

-- 
Matthias Andree

Encrypt your mail: my GnuPG key ID is 0x052E7D95




reply via email to

[Prev in Thread] Current Thread [Next in Thread]