Re: Unused Variables warnings with global consts.h header file
Re: Unused Variables warnings with global consts.h header file
- Subject: Re: Unused Variables warnings with global consts.h header file
- From: "Jan Barnholt" <email@hidden>
- Date: Mon, 28 Jan 2008 18:58:01 +0100 (MET)
> > struct tTBButtonDefinition {
> > int ControlIdx;
> > char IcnsFile[256];
> > int CommandID;
> > };
>
> This is because the above is a definition, rather than a declaration. It
> looks like you want a declaration:
>
> typedef struct {
> int ControlIdx;
> char IcnsFile[256];
> int CommandID;
> } tTBButtonDefinition;
>
> And I think the error will go away.
Unfortunately that doesn't change a thing, the warning keeps popping up.
And it still strikes me odd that these lines don't give a warning
const RGBColor kColMode_BW_BgCol = {0xFF<<8, 0xFF<<8, 0xFF<<8},
kColMode_BW_FgCol = {0x11<<8, 0x11<<8, 0x11<<8};
despite the definition of RGBColor:
struct RGBColor {
unsigned short red;
unsigned short green;
unsigned short blue;
};
typedef struct RGBColor;
Jan
_______________________________________________
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