cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: MIPSPro "remarks"

From: Tor Arntsen <tor_at_spacetec.no>
Date: Fri, 20 Feb 2004 16:54:03 +0100

On Feb 20, 16:32, Tor Arntsen wrote:
>On Feb 20, 16:27, Daniel Stenberg wrote:
>>The IRIX MIPSPro compiler outputs very annoying "remarks" about obvious things
>>such as "controlling expression is constant".
>>
>>Since the compiler is also showing lines labelled as 'warnings', would it make
>>sense if I prevented the remarks from getting counted as warnings? They are
>>often rather silly, but sometimes possibly indicating a problem.
>
>I could probably turn them off one by one, e.g. there's a particular option
>for turning off all 'controlling expression is constant' remarks.

As an example, see the difference between

<http://curl.haxx.se/auto/log.cgi?id=20040220143445-21940> (29 warnings)
and
<http://curl.haxx.se/auto/log.cgi?id=20040220164010-25399> (17 warnings)

The former is compiled with CFLAGS="-fullwarn", the latter with
CFLAGS="-fullwarn -woff 1209" (the syntax is -woff number[,number,..])

I could do something similar for Intel icc warnings, e.g.
CFLAGS="-Wall -wd279" would turn off those same 'controlling expression is
constant' remarks (wish that those compiler vendors could agree on the same
number. I thought there was a standard there!)

-Tor
Received on 2004-02-20