From 8dc7572164d1f630fed49e695d4bf62ea8e09a15 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 19 Feb 2016 18:24:22 +0300 Subject: Fix all known warnings from compiler flags -Wformat* Add all missing -Wformat flags into configure. --- 3rdparty/libconfig/libconfig.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '3rdparty/libconfig') diff --git a/3rdparty/libconfig/libconfig.c b/3rdparty/libconfig/libconfig.c index 0942241c2..696f5fc08 100644 --- a/3rdparty/libconfig/libconfig.c +++ b/3rdparty/libconfig/libconfig.c @@ -192,7 +192,7 @@ static void __config_write_value(const struct config_t *config, switch(format) { case CONFIG_FORMAT_HEX: - fprintf(stream, "0x%X", value->ival); + fprintf(stream, "0x%X", (unsigned int)(value->ival)); break; case CONFIG_FORMAT_DEFAULT: @@ -207,7 +207,7 @@ static void __config_write_value(const struct config_t *config, switch(format) { case CONFIG_FORMAT_HEX: - fprintf(stream, "0x" INT64_HEX_FMT "L", value->llval); + fprintf(stream, "0x" INT64_HEX_FMT "L", (unsigned long long)(value->llval)); break; case CONFIG_FORMAT_DEFAULT: @@ -291,7 +291,7 @@ static void __config_write_value(const struct config_t *config, if(c >= ' ') fputc(c, stream); else - fprintf(stream, "\\x%02X", c); + fprintf(stream, "\\x%02X", (unsigned int)(c)); } } } -- cgit v1.2.3-70-g09d2