summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-11-19 09:44:20 -0200
committershennetsind <ind@henn.et>2013-11-19 09:44:20 -0200
commit6509516aeeb96e47d3e72d9e7137568b8fdbad24 (patch)
treecc74323a6703ccdfb29bc988ee63bf225e705243
parent463cbc94ea4124a35ad5bf3222b510ad979d8805 (diff)
downloadhercules-6509516aeeb96e47d3e72d9e7137568b8fdbad24.tar.gz
hercules-6509516aeeb96e47d3e72d9e7137568b8fdbad24.tar.bz2
hercules-6509516aeeb96e47d3e72d9e7137568b8fdbad24.tar.xz
hercules-6509516aeeb96e47d3e72d9e7137568b8fdbad24.zip
Fixed a compiling warning on libconfig.c
variable 'buffer' set but not used Signed-off-by: shennetsind <ind@henn.et>
-rw-r--r--3rdparty/libconfig/libconfig.c4
1 files changed, 2 insertions, 2 deletions
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);