Re: Suppressing warnings for multi-character character constants
Re: Suppressing warnings for multi-character character constants
- Subject: Re: Suppressing warnings for multi-character character constants
- From: Alastair Houghton <email@hidden>
- Date: Wed, 26 Nov 2003 10:56:39 +0000
On 26 Nov 2003, at 10:01, David Palmer wrote:
> In the process of converting a Codewarrior project to Xcode, I am
> getting hundreds of warning messages wherever I use two-byte character
> constants, e.g.,
>
> UInt16 elementSymbol = 'Si';
>
> (which at compile time results in the warning: "Multi-character
> character constant").
>
> Is there a straightforward way of suppressing these warnings please?
> (without turning off other, more serious warnings?).
If you read the GCC manual, you'll find that you can enable and disable
individual warnings - see
http://developer.apple.com/documentation/DeveloperTools/gcc-3.3/gcc/
Warning-Options.html#Warning Options
and in particular note the second paragraph, which mentions that for
each warning option -Wfoo, there is a counterpart, -Wno-foo, that
explicitly disables the warning.
The specific option that you want is -Wno-multichar.
Kind regards,
Alastair.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.