projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d061c27
)
Fix build with older GCCs
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sun, 14 Aug 2016 20:25:53 +0000
(22:25 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sun, 14 Aug 2016 20:25:53 +0000
(22:25 +0200)
They warn for unknown pragmas
src/liboconfig/scanner.l
patch
|
blob
|
history
diff --git
a/src/liboconfig/scanner.l
b/src/liboconfig/scanner.l
index
09de4d2
..
2b5dbfb
100644
(file)
--- a/
src/liboconfig/scanner.l
+++ b/
src/liboconfig/scanner.l
@@
-33,8
+33,11
@@
#include "aux_types.h"
#include "parser.h"
+#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wmissing-noreturn"
+#endif
+
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wsign-compare"
@@
-164,5
+167,8
@@
static void ml_append (char *string)
return;
} /* ml_append */
+#ifdef __clang__
#pragma clang diagnostic pop
+#endif
+
#pragma GCC diagnostic pop