From 46823f091c2d3f9b0a50e55919d9741076df4a6a Mon Sep 17 00:00:00 2001 From: NoTag Date: Tue, 1 Oct 2024 09:19:00 +0000 Subject: [PATCH] * hotfix rapdijson for gcc14 git-svn-id: https://svn.exactcode.de/t2/trunk@71041 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/contrib/rapidjson/hotfix-gcc14.patch | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 package/contrib/rapidjson/hotfix-gcc14.patch diff --git a/package/contrib/rapidjson/hotfix-gcc14.patch b/package/contrib/rapidjson/hotfix-gcc14.patch new file mode 100644 index 0000000000..dd063cac01 --- /dev/null +++ b/package/contrib/rapidjson/hotfix-gcc14.patch @@ -0,0 +1,35 @@ +# --- T2-COPYRIGHT-NOTE-BEGIN --- +# T2 SDE: package/*/rapidjson/hotfix-gcc14.patch +# Copyright (C) 2024 The T2 SDE Project +# +# This Copyright note is generated by scripts/Create-CopyPatch, +# more information can be found in the files COPYING and README. +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms +# of the GNU General Public License version 2 as used by the T2 SDE. +# --- T2-COPYRIGHT-NOTE-END --- + +From 3b2441b87f99ab65f37b141a7b548ebadb607b96 Mon Sep 17 00:00:00 2001 +From: Janusz Chorko +Date: Fri, 26 Aug 2016 21:17:38 +0200 +Subject: [PATCH] Removed non-compiling assignment operator. Fixed #718 + +--- + include/rapidjson/document.h | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h +index e3e20dfbd..b0f1f70be 100644 +--- a/include/rapidjson/document.h ++++ b/include/rapidjson/document.h +@@ -316,8 +316,6 @@ struct GenericStringRef { + + GenericStringRef(const GenericStringRef& rhs) : s(rhs.s), length(rhs.length) {} + +- GenericStringRef& operator=(const GenericStringRef& rhs) { s = rhs.s; length = rhs.length; } +- + //! implicit conversion to plain CharType pointer + operator const Ch *() const { return s; } + -- 2.11.4.GIT