summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 53be6ee)
raw | patch | inline | side by side (parent: 53be6ee)
author | Florian Forster <octo@collectd.org> | |
Tue, 16 Jun 2015 21:07:34 +0000 (23:07 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Tue, 16 Jun 2015 21:07:34 +0000 (23:07 +0200) |
Hopefully fixes:
scanner.c:4128:17: error: unused function 'yyunput' [-Werror,-Wunused-function]
static void yyunput (int c, register char * yy_bp )
^
scanner.c:4173:16: error: function 'input' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration]
static int input (void)
^
2 errors generated.
scanner.c:4128:17: error: unused function 'yyunput' [-Werror,-Wunused-function]
static void yyunput (int c, register char * yy_bp )
^
scanner.c:4173:16: error: function 'input' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration]
static int input (void)
^
2 errors generated.
src/liboconfig/scanner.l | patch | blob | history |
index 9f0cd8e3cc51da8838661ab62904b20975017337..6294ae59b82e7704e7e02a70db6bd2fb73e4bcf2 100644 (file)
--- a/src/liboconfig/scanner.l
+++ b/src/liboconfig/scanner.l
*/
%{
+/* lex and yacc do some weird stuff, so turn off some warnings. */
+#if defined(__clang__)
+# pragma clang diagnostic ignored "-Wunused-function"
+# pragma clang diagnostic ignored "-Wunneeded-internal-declaration"
+#endif
+
#include <stdlib.h>
#include "oconfig.h"
#include "aux_types.h"