projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d1136a
)
liboconfig: silence warnings in generated code
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sun, 14 Aug 2016 19:32:00 +0000
(21:32 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sun, 14 Aug 2016 19:32:00 +0000
(21:32 +0200)
Lex generates these, nothing we can do about them
src/liboconfig/scanner.l
patch
|
blob
|
history
diff --git
a/src/liboconfig/scanner.l
b/src/liboconfig/scanner.l
index
7a831c2
..
09de4d2
100644
(file)
--- a/
src/liboconfig/scanner.l
+++ b/
src/liboconfig/scanner.l
@@
-33,6
+33,11
@@
#include "aux_types.h"
#include "parser.h"
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wmissing-noreturn"
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wsign-compare"
+
/* multiline string buffer */
static char *ml_buffer = NULL;
static int ml_pos = 0;
@@
-159,3
+164,5
@@
static void ml_append (char *string)
return;
} /* ml_append */
+#pragma clang diagnostic pop
+#pragma GCC diagnostic pop