From 6509516aeeb96e47d3e72d9e7137568b8fdbad24 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Tue, 19 Nov 2013 09:44:20 -0200 Subject: Fixed a compiling warning on libconfig.c variable 'buffer' set but not used Signed-off-by: shennetsind --- 3rdparty/libconfig/libconfig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '3rdparty') diff --git a/3rdparty/libconfig/libconfig.c b/3rdparty/libconfig/libconfig.c index 194c891be..358c415f5 100644 --- a/3rdparty/libconfig/libconfig.c +++ b/3rdparty/libconfig/libconfig.c @@ -557,7 +557,7 @@ static int __config_read(config_t *config, FILE *stream, const char *filename, yyscan_t scanner; struct scan_context scan_ctx; struct parse_context parse_ctx; - YY_BUFFER_STATE buffer = NULL; + /*YY_BUFFER_STATE buffer = NULL;*/ int r; /* Reinitialize the config */ @@ -589,7 +589,7 @@ static int __config_read(config_t *config, FILE *stream, const char *filename, if(stream) libconfig_yyrestart(stream, scanner); else /* read from string */ - buffer = libconfig_yy_scan_string(str, scanner); + /*buffer = */libconfig_yy_scan_string(str, scanner); libconfig_yyset_lineno(1, scanner); r = libconfig_yyparse(scanner, &parse_ctx, &scan_ctx); -- cgit v1.2.3-60-g2f50