On 09/15/2013 04:44 AM, Jeffrey Walton wrote:
> On Sat, Sep 14, 2013 at 11:59 PM, Amos Jeffries <squid3_at_treenet.co.nz> wrote:
>> On 14/09/2013 6:28 a.m., Jeffrey Walton wrote:
>>>
>>> I'm trying to get analysis tools on squid, but I'm having trouble due
>>> to -Werror. -Werror is causing a continuous stream of compile and link
>>> failures.
>>>
>>> How does one disable -Werror? INSTALL does not offer any directions or
>>> mention any options.
>>
>>
>> Please start with reporting the warning that is coming out of the compiler.
>> Things will only get worse unless the developers know it needs fixing.
>>
>> You can use possibly use --disable-error-checking if it is a warning being
>> escalated.
> configuring with `--disable-error-checking` has the undesirable effect
> of suppressing warnings (i.e., removing -Wall). I want want the
> opposite: keep -Wall, but remove -Werror because it stops compilation
> on the first warning treated as an error.
I think it is a bug that --disable-error-checking disables warnings, but
with a name like that, it is really hard to say what the option ought to
do. I suggest filing a bug report and try to convince others that the
./configure option should not disable warnings (and should probably be
renamed to match what it does).
Meanwhile, you can
* use CXXFLAGS (and possibly other ./configure variables) to manually
disable -Werror (see ./configure --help) or
* edit acinclude/compiler-flags.m4 (and possibly other files) to remove
-Werror added by Squid (you will need to bootstrap and configure after
that).
Cheers,
Alex.
Received on Tue Sep 17 2013 - 15:33:37 MDT
This archive was generated by hypermail 2.2.0 : Wed Sep 18 2013 - 12:00:05 MDT