This kills: cf-lex.c:1874: warning: 'yy_fatal_error' defined but not used Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@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
This kills: cf-lex.c:1874: warning: 'yy_fatal_error' defined but not used
Sorry, but this is much more ugly than the warning itself. What about declaring yy_fatal_error() with UNUSED? Have a nice fortnight -- Martin `MJ' Mares <mj@ucw.cz> http://mj.ucw.cz/ Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth Lottery -- a tax on people who can't do math.
Martin Mares <mj@ucw.cz> wrote on 2010/04/27 23:33:08:
This kills: cf-lex.c:1874: warning: 'yy_fatal_error' defined but not used
Sorry, but this is much more ugly than the warning itself.
No, it isn't. You don't have look at that every compile.
What about declaring yy_fatal_error() with UNUSED?
Tried that already, but since cf-lex.c already have a decl. it doesn't work.
Hello!
Sorry, but this is much more ugly than the warning itself.
No, it isn't. You don't have look at that every compile.
So disable the warning. Have a nice fortnight -- Martin `MJ' Mares <mj@ucw.cz> http://mj.ucw.cz/ Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
Martin Mares <mj@ucw.cz> wrote on 2010/04/27 23:41:21:
Hello!
Sorry, but this is much more ugly than the warning itself.
No, it isn't. You don't have look at that every compile.
So disable the warning.
I just did that. This is the only way I can think of or if you like, remove the YY_FATAL_ERROR? Jocke
participants (3)
-
Joakim Tjernlund -
Joakim Tjernlund -
Martin Mares