[Webkit-unassigned] [Bug 274587] New: WebKit release build fails in WTF_OVERRIDE_DELETE_FOR_CHECKED_PTR with gcc 14
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu May 23 08:46:38 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=274587
Bug ID: 274587
Summary: WebKit release build fails in
WTF_OVERRIDE_DELETE_FOR_CHECKED_PTR with gcc 14
Product: WebKit
Version: WebKit Local Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Platform
Assignee: webkit-unassigned at lists.webkit.org
Reporter: loic.yhuel at softathome.com
When building WPE in release mode on Fedora 40 (gcc 14.1.1) :
In member function ‘IntegralType WTF::SingleThreadIntegralWrapper<IntegralType>::valueWithoutThreadCheck() const [with IntegralType = unsigned int]’,
inlined from ‘PtrCounterType WTF::CanMakeCheckedPtrBase<StorageType, PtrCounterType>::ptrCountWithoutThreadCheck() const [with StorageType = WTF::SingleThreadIntegralWrapper<unsigned int>; PtrCounterType = unsigned int]’ at webkit/WebKitBuild/WPE/Release/WTF/Headers/wtf/CheckedRef.h:295:51,
inlined from ‘static void WebCore::DeviceMotionController::operator delete(WebCore::DeviceMotionController*, std::destroying_delete_t, size_t)’ at webkit/Source/WebCore/dom/DeviceMotionController.h:40:5,
inlined from ‘virtual WebCore::DeviceMotionController::~DeviceMotionController()’ at webkit/Source/WebCore/dom/DeviceMotionController.h:43:13:
webkit/WebKitBuild/WPE/Release/WTF/Headers/wtf/SingleThreadIntegralWrapper.h:43:59: error: ‘((const WTF::SingleThreadIntegralWrapper<unsigned int>*)this)[2].WTF::SingleThreadIntegralWrapper<unsigned int>::m_value’ is used uninitialized [-Werror=uninitialized]
43 | IntegralType valueWithoutThreadCheck() const { return m_value; }
|
(and many other occurences)
It seems gcc doesn't like the use of member variables after the destructor, and reports it as -Wuninitialized.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240523/c6a1fec9/attachment.htm>
More information about the webkit-unassigned
mailing list