Re: [PATCH] Better support compiler conditional flags on clang

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sat, 22 Jun 2013 16:17:24 +1200

On 22/06/2013 2:50 a.m., Kinkie wrote:
> Hi,
> different clang versions have different compiler flags.
> This patch tests if the -Wno-error=parentheses-equality and
> -Qunused-arguments flags are available before setting them at
> configure-time.

I'm scratching my head over this one a little.

You are testing for each flag independently.

I was of the understanding that the purpose of -Qunused-arguments was to
enable the compiler to run with the -W flag. Which implies that the -W
flag will fail its individual SQUID_CC_CHECK_ARGUMENT().
The if-statement causes either both to be used or neither. Was not the
idea that the -W should be used, and -Q only necessary if -W failed?

Amos
Received on Sat Jun 22 2013 - 04:17:41 MDT

This archive was generated by hypermail 2.2.0 : Sat Jun 22 2013 - 12:00:08 MDT