• 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
Suppressing warnings for multi-character character constants
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Suppressing warnings for multi-character character constants


  • Subject: Suppressing warnings for multi-character character constants
  • From: David Palmer <email@hidden>
  • Date: Wed, 26 Nov 2003 10:01:50 +0000

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?).

I see that there is a setting for allowing four-character constants (as used for OSTypes). I've checked the implementation notes, and my two-byte usage, whilst "implementation-defined", is allowed by the GCC3.3 compiler.

Many thanks in advance,
David Palmer
_______________________________________________
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: Alastair Houghton <email@hidden>
  • Prev by Date: Re: Bad free() before any of my code
  • Next by Date: prebinding questions - "got slid"
  • Previous by thread: Re: Bad free() before any of my code
  • Next by thread: Re: Suppressing warnings for multi-character character constants
  • Index(es):
    • Date
    • Thread