[sr-dev] git:master: cfg. parser: fix warnings

Andrei Pelinescu-Onciul andrei at iptel.org
Wed Mar 10 10:53:57 CET 2010


Module: sip-router
Branch: master
Commit: 0dabc34afe64672f07f572acfcd9478fc3575c9d
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=0dabc34afe64672f07f572acfcd9478fc3575c9d

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Wed Mar 10 09:45:28 2010 +0100

cfg. parser: fix warnings

- removed flex input warnings
- workaround for bison conflicts warnings (%expect ...)

---

 cfg.lex |    1 +
 cfg.y   |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/cfg.lex b/cfg.lex
index 0e16b21..ffc8e1f 100644
--- 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
--- a/cfg.y
+++ b/cfg.y
@@ -101,6 +101,8 @@
  * 2010-02-17  added blacklist imask (DST_BLST_*_IMASK) support (andrei)
 */
 
+%expect 5
+
 %{
 
 #include <stdlib.h>




More information about the sr-dev mailing list