diff options
author | Ran Benita <ran@unusedvar.com> | 2019-12-27 15:03:10 +0200 |
---|---|---|
committer | Ran Benita <ran@unusedvar.com> | 2019-12-27 15:20:25 +0200 |
commit | 670566f0d45a6dc623860d7365b0493b7fa92986 (patch) | |
tree | 8b88c209f8ffa12b193e35be4a4bfd085c4af121 /test | |
parent | 40bea8e9fa715c099173929149c134525383d3a2 (diff) | |
download | xorg-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |