summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRan Benita <ran@unusedvar.com>2019-12-27 15:03:10 +0200
committerRan Benita <ran@unusedvar.com>2019-12-27 15:20:25 +0200
commit670566f0d45a6dc623860d7365b0493b7fa92986 (patch)
tree8b88c209f8ffa12b193e35be4a4bfd085c4af121 /test
parent40bea8e9fa715c099173929149c134525383d3a2 (diff)
downloadxorg-lib-libxkbcommon-670566f0d45a6dc623860d7365b0493b7fa92986.tar.gz
Only add GCC diagnostic pragmas when compiler is GCC compatible
Avoid "unknown pragma" warnings on other compilers. Signed-off-by: Ran Benita <ran@unusedvar.com>
Diffstat (limited to 'test')
-rw-r--r--test/log.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/log.c b/test/log.c
index 4a93a6e..384fabc 100644
--- a/test/log.c
+++ b/test/log.c
@@ -26,7 +26,9 @@
#include "test.h"
#include "context.h"
+#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wmissing-format-attribute"
+#endif
static const char *
log_level_to_string(enum xkb_log_level level)