More on disabling warnings
More on disabling warnings
- Subject: More on disabling warnings
- From: Steve Baxter <email@hidden>
- Date: Thu, 8 Sep 2005 20:55:11 +0100
OK, I give up. How do I disable these warnings:
warning: converting to 'UInt8' from 'SFloat32'
warning: converting to 'UInt8' from 'SFloat32'
warning: passing 'SFloat64' for argument 3 to 'XRect::XRect(SInt32,
SInt32, SInt32, SInt32)'
warning: passing 'SFloat64' for argument 4 to 'XRect::XRect(SInt32,
SInt32, SInt32, SInt32)'
I'm not interested in these warnings - I am happy with the built-in
conversions. The problem is that these warnings swamp the meaningful
ones.
Here are my warning flags:
-Wno-trigraphs -Wunused-label -Wunused-variable -Wunused-value -
Wparentheses -Wno-conversion -Wno-sign-compare
This is C++ code in XCode 2.2. I would have thought that -Wno-
conversion would do the trick, but it seems not!
Modifying the code to work around the compiler's zealousness would be
a lengthy (and error-prone) process (I have several thousand of these
warnings). I just want to disable the message!
Cheers,
Steve.
P.S. Here is the full command line in case it is important:
CompileC "../Build Products/Intermediates/Arcadia Framework.build/
Debug/Arcadia Framework.build/Objects-normal/ppc/
XVolumeLuminanceTool.o" "../../X-Platform/Volume Imaging/
XVolumeLuminanceTool.cpp" normal ppc c++ com.apple.compilers.gcc.4_0
mkdir "/Volumes/Stuff/Users/stevebaxter/Code/Arcadia XCode/Mac/
Arcadia App/../Build Products/Intermediates/Arcadia Framework.build/
Debug/Arcadia Framework.build/Objects-normal/ppc"
cd "/Volumes/Stuff/Users/stevebaxter/Code/Arcadia XCode/Mac/
Arcadia App"
/usr/bin/gcc-4.0 -x c++ -arch ppc -pipe -Wno-trigraphs -fpascal-
strings -faltivec -fasm-blocks -g -O0 -Wunused-label -Wunused-
variable -Wunused-value -D__IMPRO_DEBUG_BUILD__ -fmessage-length=0 -
mtune=G5 -mfix-and-continue
<paths stripped>
Stephen Baxter
Software Development Manager
Improvision
email@hidden
+44-2476-692229
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden