Wednesday, 7 August 2013

How to silence 'Expected a type' Xcode compiler warnings?

How to silence 'Expected a type' Xcode compiler warnings?

Is there any way to silence Xcode compiler warnings because of unknown
types like with @class? I defined a type in a single .h file that can be
reused throughout the app:
#ifndef Apsiape_InterfaceDefinitions_h
#define Apsiape_InterfaceDefinitions_h
#define COLOR_ALERT_RED [UIColor colorWithRed:1 green:0.3 blue:0.3 alpha:1]
...
typedef enum {
BYEdgeTypeNone = 0,
BYEdgeTypeTop,
BYEdgeTypeLeft,
BYEdgeTypeBottom,
BYEdgeTypeRight
} BYEdgeType;

No comments:

Post a Comment