summaryrefslogtreecommitdiff
path: root/dev-cpp/jsoncons/files/jsoncons-1.3.2-uninitialized.patch
diff options
context:
space:
mode:
authorAlexey Sokolov <alexey+gentoo@asokolov.org>2025-08-15 23:15:47 +0100
committerSam James <sam@gentoo.org>2025-09-04 21:48:36 +0100
commit58b3cfe23855e57e2f0aa7eda999803ad56b5a42 (patch)
tree3e390c31e97f85d060210bd6f83c88c22029dd34 /dev-cpp/jsoncons/files/jsoncons-1.3.2-uninitialized.patch
parent35c3e1bee8f56edf7445aed066af87d360118325 (diff)
downloadgentoo-58b3cfe23855e57e2f0aa7eda999803ad56b5a42.tar.gz
gentoo-58b3cfe23855e57e2f0aa7eda999803ad56b5a42.tar.bz2
gentoo-58b3cfe23855e57e2f0aa7eda999803ad56b5a42.zip
dev-cpp/jsoncons: new package, add 1.3.2
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org> Part-of: https://github.com/gentoo/gentoo/pull/43482 Signed-off-by: Sam James <sam@gentoo.org>
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.patch14
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;