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

Andrei Pelinescu-Onciul andrei at iptel.org
Wed Mar 17 21:18:13 CET 2010


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

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 ...)
(cherry picked from commit 0dabc34afe64672f07f572acfcd9478fc3575c9d)

---

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

diff --git a/cfg.lex b/cfg.lex
index 3d41477..ef8cc6f 100644
--- a/cfg.lex
+++ b/cfg.lex
@@ -83,6 +83,7 @@
  *  2010-01-10  added SHM_MEM_SZ (andrei)
 */
 
+%option noinput
 
 %{
 	#include "dprint.h"
diff --git a/cfg.y b/cfg.y
index f535d98..60ce707 100644
--- a/cfg.y
+++ b/cfg.y
@@ -100,6 +100,8 @@
  *             added SHM_MEM_SZ (andrei)
 */
 
+%expect 5
+
 %{
 
 #include <stdlib.h>




More information about the sr-dev mailing list