Skip to content

Commit

Permalink
Disabled unused variable warnings
Browse files Browse the repository at this point in the history
Replaced -Wunused-value warning ignore with -Wunused-variable ignore,
which solves warning with (Apple LLVM version 4.2 (clang-425.0.28)
(based on LLVM 3.2svn))
  • Loading branch information
maniak-dobrii committed May 27, 2013
1 parent f5d4141 commit 918f24f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JREnum.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
extern NSString* ENUM_TYPENAME##ToString(int enumValue); \
extern BOOL ENUM_TYPENAME##FromString(NSString *enumLabel, ENUM_TYPENAME *enumValue); \
_Pragma("clang diagnostic push") \
_Pragma("clang diagnostic ignored \"-Wunused-value\"") \
_Pragma("clang diagnostic ignored \"-Wunused-variable\"") \
static NSString *_##ENUM_TYPENAME##_constants_string = @"" #ENUM_CONSTANTS; \
_Pragma("clang diagnostic pop")

Expand Down

0 comments on commit 918f24f

Please sign in to comment.