diff options
Diffstat (limited to 'dev-cpp/jsoncons/files/jsoncons-1.3.2-uninitialized.patch')
| -rw-r--r-- | dev-cpp/jsoncons/files/jsoncons-1.3.2-uninitialized.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/dev-cpp/jsoncons/files/jsoncons-1.3.2-uninitialized.patch b/dev-cpp/jsoncons/files/jsoncons-1.3.2-uninitialized.patch new file mode 100644 index 000000000000..936d9eec8e3d --- /dev/null +++ b/dev-cpp/jsoncons/files/jsoncons-1.3.2-uninitialized.patch @@ -0,0 +1,14 @@ +Fix error: ācā may be used uninitialized [-Werror=maybe-uninitialized] +https://github.com/danielaparker/jsoncons/pull/628 + +--- a/include/jsoncons/source.hpp ++++ b/include/jsoncons/source.hpp +@@ -767,7 +767,7 @@ namespace jsoncons { + std::size_t actual = 0; + while (actual < n) + { +- typename Source::value_type c; ++ typename Source::value_type c{}; + if (source.read(&c,1) != 1) + { + break; |
