cfg. parser: fix warnings
authorAndrei Pelinescu-Onciul <andrei@iptel.org>
Wed, 10 Mar 2010 08:45:28 +0000 (09:45 +0100)
committerAndrei Pelinescu-Onciul <andrei@iptel.org>
Wed, 10 Mar 2010 09:53:46 +0000 (10:53 +0100)
- removed flex input warnings
- workaround for bison conflicts warnings (%expect ...)

cfg.lex
cfg.y

diff --git a/cfg.lex b/cfg.lex
index 0e16b21..ffc8e1f 100644 (file)
--- a/cfg.lex
+++ b/cfg.lex
@@ -84,6 +84,7 @@
  *  2010-02-17 added DST_BLST_{UDP,TCP,TLS,SCTP}_IMASK (andrei)
 */
 
+%option noinput
 
 %{
        #include "dprint.h"
diff --git a/cfg.y b/cfg.y
index e193674..8bda2fc 100644 (file)
--- a/cfg.y
+++ b/cfg.y
  * 2010-02-17  added blacklist imask (DST_BLST_*_IMASK) support (andrei)
 */
 
+%expect 5
+
 %{
 
 #include <stdlib.h>