[PATCH] flex: Kill warning

Joakim Tjernlund Joakim.Tjernlund at transmode.se
Tue Apr 27 23:27:17 CEST 2010


This kills:
cf-lex.c:1874: warning: 'yy_fatal_error' defined but not used

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund at transmode.se>
---
 conf/cf-lex.l |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/conf/cf-lex.l b/conf/cf-lex.l
index 6612d3c..82f4c52 100644
--- a/conf/cf-lex.l
+++ b/conf/cf-lex.l
@@ -71,7 +71,7 @@ int (*cf_read_hook)(byte *buf, unsigned int max);
 
 #define YY_INPUT(buf,result,max) result = cf_read_hook(buf, max);
 
-#define YY_FATAL_ERROR(msg) cf_error(msg)
+#define YY_FATAL_ERROR(msg) do {cf_error(msg); if(0) yy_fatal_error(msg); } while(0)
 
 %}
 
-- 
1.6.4.4




More information about the Bird-users mailing list