I get this warning:
warning: comparison between pointer and integer
when performing the following actions:
if (menuItem.menuType == LinkExternal)
MenuType is a custom enumeration listed below:
enum menuItemType
{
LinkInternal = 0,
LinkExternal = 1,
Image = 2,
Movie = 3,
MapQuery = 4
};
enum menuItemType *menuType;
I guess I just need cast, but what is the syntax?
source
share