diff options
author | D G Turner | 2016-10-30 14:46:47 +0000 |
---|---|---|
committer | D G Turner | 2016-10-30 14:46:47 +0000 |
commit | 844972441e1d28bf64ee3ef3539fee562227036e (patch) | |
tree | dae757f4c3c514976bebe48c89154a640ba3fce3 /common/json.cpp | |
parent | 96153644e6b72b7d956d8a45114172a035ce24cc (diff) | |
download | scummvm-rg350-844972441e1d28bf64ee3ef3539fee562227036e.tar.gz scummvm-rg350-844972441e1d28bf64ee3ef3539fee562227036e.tar.bz2 scummvm-rg350-844972441e1d28bf64ee3ef3539fee562227036e.zip |
COMMON: Fix GCC Warning in JSON Parser.
The emitted warning is "ISO C++98 does not support the ‘%lg’ gnu_printf
format [-Wformat=]".
Though "%lg" is required for *scanf functions to indicate the field
size, it is not required for *printf functions which use "%g" instead.
Diffstat (limited to 'common/json.cpp')
-rw-r--r-- | common/json.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/json.cpp b/common/json.cpp index f7a54d23b2..792d1967e9 100644 --- a/common/json.cpp +++ b/common/json.cpp @@ -980,7 +980,7 @@ String JSONValue::stringifyImpl(size_t const indentDepth) const { ret_string = "null"; else { char str[80]; - sprintf(str, "%lg", _numberValue); + sprintf(str, "%g", _numberValue); ret_string = str; } break; |