diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-11-29 13:20:26 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-11-29 13:20:26 +0000 |
commit | 82020bf7ff936f52f6f1efc646ae374e46b5ed36 (patch) | |
tree | 1b1d0c4ea3c8e8d77a6066d8ac29c51cececd1a9 /dev-libs/xalan-c/files/xalan-c-1.12-fix-lto.patch | |
parent | 0bdb5244708888dfc364e30b08facc0a45281f78 (diff) |
gentoo auto-resync : 29:11:2022 - 13:20:25
Diffstat (limited to 'dev-libs/xalan-c/files/xalan-c-1.12-fix-lto.patch')
-rw-r--r-- | dev-libs/xalan-c/files/xalan-c-1.12-fix-lto.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-libs/xalan-c/files/xalan-c-1.12-fix-lto.patch b/dev-libs/xalan-c/files/xalan-c-1.12-fix-lto.patch new file mode 100644 index 000000000000..6b3a46c1342e --- /dev/null +++ b/dev-libs/xalan-c/files/xalan-c-1.12-fix-lto.patch @@ -0,0 +1,46 @@ +Fix error: type ‘struct NameCompareFunctor’ violates the C++ One Definition Rule [-Werror=odr] + +Bug: https://bugs.gentoo.org/856097 + +--- a/src/xalanc/PlatformSupport/AttributesImpl.cpp ++++ b/src/xalanc/PlatformSupport/AttributesImpl.cpp +@@ -253,6 +253,9 @@ + + + ++namespace ++{ ++ + struct NameCompareFunctor + { + NameCompareFunctor(const XMLCh* theQName) : +@@ -271,6 +274,8 @@ + const XMLCh* const m_qname; + }; + ++} // --- namespace ++ + + + struct URIAndLocalNameCompareFunctor +--- a/src/xalanc/PlatformSupport/AttributeListImpl.cpp ++++ b/src/xalanc/PlatformSupport/AttributeListImpl.cpp +@@ -242,6 +242,9 @@ + + + ++namespace ++{ ++ + struct NameCompareFunctor + { + NameCompareFunctor(const XMLCh* theName) : +@@ -260,6 +263,8 @@ + const XMLCh* const m_name; + }; + ++} // --- namespace ++ + + + const XMLCh* |