summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2017-01-17 08:22:01 (GMT)
committerTobias Klauser <tklauser@distanz.ch>2017-01-20 08:38:11 (GMT)
commitb1f76801c37459c1b6a88571c9b1cc02a225499e (patch)
tree798a97082b36c309557da6d6f3418353ed1ec877 /lib
parent699d78f98946259435308a9d2f67707fb13c4fbe (diff)
downloadlibnl-b1f76801c37459c1b6a88571c9b1cc02a225499e.zip
libnl-b1f76801c37459c1b6a88571c9b1cc02a225499e.tar.gz
libnl-b1f76801c37459c1b6a88571c9b1cc02a225499e.tar.bz2
ematch: Add missing function prototypes
Older versions of flex (namely the one used on Travis CI) don't properly emit function prototypes for ematch_get_column() and ematch_set_column(), leading to GCC -Wmissing-prototypes warnings. Fix them by manually adding these prototypes. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'lib')
-rw-r--r--lib/route/cls/ematch_grammar.l3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/route/cls/ematch_grammar.l b/lib/route/cls/ematch_grammar.l
index 96ef1a0..c3f02b0 100644
--- a/lib/route/cls/ematch_grammar.l
+++ b/lib/route/cls/ematch_grammar.l
@@ -16,6 +16,9 @@
#include <netlink/route/cls/ematch.h>
#include <netlink/route/cls/ematch/cmp.h>
#include "ematch_syntax.h"
+
+ int ematch_get_column(yyscan_t);
+ void ematch_set_column(int, yyscan_t);
%}
%option 8bit