• 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
Warning question - correct or not?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Warning question - correct or not?


  • Subject: Warning question - correct or not?
  • From: Rune Lindman <email@hidden>
  • Date: Wed, 27 Jul 2005 11:00:04 +0200

Is the following code correct? I always used to write like this but since moving to Xcode/GCC I get warning messages.

UInt16 outMark = (HasColumn(inCommand)) ? checkMark : noMark;

warning: enumeral mismatch in conditional expression: `<anonymous enum>' vs `<anonymous enum>'

How can I change the code without resorting to if/else

Xcode 2.1
GCC 3.3

Best regards,

Rune Lindman
_______________________________________________
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: Warning question - correct or not?
      • From: Sailesh Agrawal <email@hidden>
  • Prev by Date: Re: Undefined symbols insanity after upgrading to Xcode 2.1...
  • Next by Date: Re: How is this not a complier error? (dynamic casting problem)
  • Previous by thread: Re: warnings
  • Next by thread: Re: Warning question - correct or not?
  • Index(es):
    • Date
    • Thread