• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Suppressing warnings for multi-character character constants
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Suppressing warnings for multi-character character constants
      • From: David Palmer <email@hidden>
References: 
 >Suppressing warnings for multi-character character constants (From: David Palmer <email@hidden>)

  • Prev by Date: Indirectly linked user dylibs
  • Next by Date: -Wunreachable-code borked?
  • Previous by thread: Suppressing warnings for multi-character character constants
  • Next by thread: Re: Suppressing warnings for multi-character character constants
  • Index(es):
    • Date
    • Thread