• 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
Case label does not reduce to an integer constant
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Case label does not reduce to an integer constant


  • Subject: Case label does not reduce to an integer constant
  • From: Jonathon Kuo <email@hidden>
  • Date: Wed, 10 Nov 2010 12:54:02 -0800

Xcode 3.2.4, Cocoa project, .m file.

gcc sees kFlag as an integer in the flag_type assignment, but not when used as a case label?

static const uint32_t kFlag  = '3gI7';
. . .
  uint32_t flag_type = kFlag;
. . .
  switch (flag_type) {
    case kFlag:
*** error: case label does not reduce to an integer constant


 _______________________________________________
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

  • Follow-Ups:
    • Re: Case label does not reduce to an integer constant
      • From: Ken Thomases <email@hidden>
    • Re: Case label does not reduce to an integer constant
      • From: Christiaan Hofman <email@hidden>
  • Prev by Date: Re: Embedding private Framework (Resolved)
  • Next by Date: Re: Case label does not reduce to an integer constant
  • Previous by thread: NSSecureTextFieldCell detected a field editor ((null))
  • Next by thread: Re: Case label does not reduce to an integer constant
  • Index(es):
    • Date
    • Thread