Permalink
Browse files

ignore some warnings about variadic macros

  • Loading branch information...
1 parent 0c63c7b commit 9137b120a2b62d34fbeed08c9ac46b17bd4c876d @aharren committed Sep 22, 2012
Showing with 15 additions and 0 deletions.
  1. +15 −0 LCLNSLog.h
View
@@ -71,6 +71,15 @@
[_lcl_logger_autoreleasepool release];
#endif
+#ifndef _LCL_NO_IGNORE_WARNINGS
+# ifdef __clang__
+ // Ignore some warnings about variadic macros when using '-Weverything'.
+# pragma clang diagnostic push
+# pragma clang diagnostic ignored "-Wunknown-pragmas"
+# pragma clang diagnostic ignored "-Wvariadic-macros"
+# pragma clang diagnostic ignored "-Wpedantic"
+# endif
+#endif
// A very simple logger, which redirects to NSLog().
#define _lcl_logger(_component, _level, _format, ...) { \
@@ -85,3 +94,9 @@
_lcl_logger_autoreleasepool_end \
}
+#ifndef _LCL_NO_IGNORE_WARNINGS
+# ifdef __clang__
+# pragma clang diagnostic pop
+# endif
+#endif
+

0 comments on commit 9137b12

Please sign in to comment.