diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-19 18:24:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-19 18:24:22 +0300 |
commit | 8dc7572164d1f630fed49e695d4bf62ea8e09a15 (patch) | |
tree | 66138d10ef1fd4f6d14666a5a078641e4c9f1b77 /3rdparty/libconfig | |
parent | c2c1322b230dc0f564397ac68615640f1083ee56 (diff) | |
download | hercules-8dc7572164d1f630fed49e695d4bf62ea8e09a15.tar.gz hercules-8dc7572164d1f630fed49e695d4bf62ea8e09a15.tar.bz2 hercules-8dc7572164d1f630fed49e695d4bf62ea8e09a15.tar.xz hercules-8dc7572164d1f630fed49e695d4bf62ea8e09a15.zip |
Fix all known warnings from compiler flags -Wformat*
Add all missing -Wformat flags into configure.
Diffstat (limited to '3rdparty/libconfig')
-rw-r--r-- | 3rdparty/libconfig/libconfig.c | 6 |
1 files changed, 3 insertions, 3 deletions
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)); } } } |