libqt5-qtdoc/0001-Partially-revert-813a928c7c3cf98670b6043149880ed5c95.patch
Christophe Giboudeaux cc59245245 Accepting request 895953 from home:Vogtinator:qt5.15
- Add patch to fix possible crash caused by GCC 11 build fix:
  * 0001-Partially-revert-813a928c7c3cf98670b6043149880ed5c95.patch
- Add patches to fix build with GCC 11 (boo#1181861, QTBUG-90395):
  * 0001-Fix-build-with-GCC-11-include-limits.patch
  * 0002-Build-fixes-for-GCC-11.patch

OBS-URL: https://build.opensuse.org/request/show/895953
OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:5.15/libqt5-qtdoc?expand=0&rev=14
2021-05-28 12:28:44 +00:00

33 lines
1.2 KiB
Diff

From 45b201ea42f69510713ddd09fb092ed6f93ad1db Mon Sep 17 00:00:00 2001
From: Ulf Hermann <ulf.hermann@qt.io>
Date: Wed, 20 Jan 2021 10:42:36 +0100
Subject: [PATCH] Partially revert 813a928c7c3cf98670b6043149880ed5c955efb9
Otherwise ASAN complains about mismatched new/delete.
Change-Id: I76ddcc388309e20055c93c68b9b6fa8a11b884e1
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
(cherry picked from commit 606b03d0a35e71565c3a91588ef2db45b9262e27)
---
src/corelib/tools/qsharedpointer_impl.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/qtbase/src/corelib/tools/qsharedpointer_impl.h b/qtbase/src/corelib/tools/qsharedpointer_impl.h
index 4aee98af53..790c187cb9 100644
--- a/qtbase/src/corelib/tools/qsharedpointer_impl.h
+++ b/qtbase/src/corelib/tools/qsharedpointer_impl.h
@@ -155,6 +155,9 @@ namespace QtSharedPointer {
#endif
inline void checkQObjectShared(...) { }
inline void setQObjectShared(...) { }
+
+ inline void operator delete(void *ptr) { ::operator delete(ptr); }
+ inline void operator delete(void *, void *) { }
};
// sizeof(ExternalRefCountData) = 12 (32-bit) / 16 (64-bit)
--
2.25.1