0
0
mirror of https://github.com/openwrt/packages.git synced 2025-02-07 09:19:51 +00:00
packages/net/dcwapd/patches/010-gcc14.patch
Rosen Penev 4aed8a05a5 dcwapd: fix compilation with GCC 14
Old bug in rapidjson.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-05-14 16:39:46 -07:00

15 lines
678 B
Diff

--- a/dcwlinux/include/rapidjson/document.h
+++ b/dcwlinux/include/rapidjson/document.h
@@ -314,9 +314,9 @@ struct GenericStringRef {
GenericStringRef(const CharType* str, SizeType len)
: s(str), length(len) { RAPIDJSON_ASSERT(s != 0); }
- GenericStringRef(const GenericStringRef& rhs) : s(rhs.s), length(rhs.length) {}
+ GenericStringRef(const GenericStringRef& rhs) = default;
- GenericStringRef& operator=(const GenericStringRef& rhs) { s = rhs.s; length = rhs.length; }
+ GenericStringRef& operator=(const GenericStringRef& rhs) = default;
//! implicit conversion to plain CharType pointer
operator const Ch *() const { return s; }