Case label does not reduce to an integer constant
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