[Scummvm-git-logs] scummvm master -> 844972441e1d28bf64ee3ef3539fee562227036e
digitall
dgturner at iee.org
Sun Oct 30 15:49:46 CET 2016
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
844972441e COMMON: Fix GCC Warning in JSON Parser.
Commit: 844972441e1d28bf64ee3ef3539fee562227036e
https://github.com/scummvm/scummvm/commit/844972441e1d28bf64ee3ef3539fee562227036e
Author: D G Turner (digitall at scummvm.org)
Date: 2016-10-30T14:46:47Z
Commit Message:
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.
Changed paths:
common/json.cpp
diff --git a/common/json.cpp b/common/json.cpp
index f7a54d2..792d196 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;
More information about the Scummvm-git-logs
mailing list