summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2017-01-17 07:56:03 (GMT)
committerTobias Klauser <tklauser@distanz.ch>2017-01-20 08:38:11 (GMT)
commit699d78f98946259435308a9d2f67707fb13c4fbe (patch)
treef01340b4ae67c0ca9d25a159ba62426bd2eb57f5
parente93745861713802a59c5c337a6b769e160932079 (diff)
downloadlibnl-699d78f98946259435308a9d2f67707fb13c4fbe.zip
libnl-699d78f98946259435308a9d2f67707fb13c4fbe.tar.gz
libnl-699d78f98946259435308a9d2f67707fb13c4fbe.tar.bz2
pktloc: Add missing function prototypes
Older versions of flex (namely the one used on Travis CI) don't properly emit function prototypes for pktloc_get_column() and pktloc_set_column(), leading to GCC -Wmissing-prototypes warnings. Fix them by manually adding these prototypes. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r--lib/route/pktloc_grammar.l3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/route/pktloc_grammar.l b/lib/route/pktloc_grammar.l
index cbb42b3..646ba56 100644
--- a/lib/route/pktloc_grammar.l
+++ b/lib/route/pktloc_grammar.l
@@ -5,6 +5,9 @@
#include <netlink/utils.h>
#include <netlink/route/pktloc.h>
#include "pktloc_syntax.h"
+
+ int pktloc_get_column(yyscan_t);
+ void pktloc_set_column(int, yyscan_t);
%}
%option 8bit