aboutsummaryrefslogtreecommitdiff
path: root/common/json.cpp
diff options
context:
space:
mode:
authorD G Turner2016-10-30 14:46:47 +0000
committerD G Turner2016-10-30 14:46:47 +0000
commit844972441e1d28bf64ee3ef3539fee562227036e (patch)
treedae757f4c3c514976bebe48c89154a640ba3fce3 /common/json.cpp
parent96153644e6b72b7d956d8a45114172a035ce24cc (diff)
downloadscummvm-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.cpp2
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;