[Webkit-unassigned] [Bug 246292] New: -Wfree-nonheap-object from CSSValue.h
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Oct 10 13:06:30 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=246292
Bug ID: 246292
Summary: -Wfree-nonheap-object from CSSValue.h
Product: WebKit
Version: WebKit Nightly Build
Hardware: PC
OS: Linux
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mcatanzaro at gnome.org
254846 at main introduced a new GCC warning:
[3805/7121] Building CXX object Source/WebCore/CMakeFiles...edSources/unified-sources/UnifiedSource-2f84417a-11.cpp.o
In file included from /home/mcatanzaro/Projects/WebKit/Source/WebCore/css/CSSPrimitiveValue.h:26,
from /home/mcatanzaro/Projects/WebKit/Source/WebCore/css/CSSValuePool.h:28,
from /home/mcatanzaro/Projects/WebKit/Source/WebCore/css/CSSValuePool.cpp:27,
from /home/mcatanzaro/Projects/WebKit/WebKitBuild/gtk3/WebCore/DerivedSources/unified-sources/UnifiedSource-2f84417a-11.cpp:1:
In member function ‘void WebCore::CSSValue::deref() const’,
inlined from ‘WTF::Ref<T, <template-parameter-1-2> >::~Ref() [with T = WebCore::CSSPrimitiveValue; Traits = WTF::RawPtrTraits<WebCore::CSSPrimitiveValue>]’ at /home/mcatanzaro/Projects/WebKit/WebKitBuild/gtk3/WTF/Headers/wtf/Ref.h:61:23,
inlined from ‘WTF::Ref<WebCore::CSSValue> WebCore::valueForContainIntrinsicSize(const RenderStyle&, const ContainIntrinsicSizeType&, std::optional<Length>)’ at /home/mcatanzaro/Projects/WebKit/Source/WebCore/css/ComputedStyleExtractor.cpp:1817:5:
/home/mcatanzaro/Projects/WebKit/Source/WebCore/css/CSSValue.h:258:16: warning: ‘static void WebCore::CSSValue::operator delete(WebCore::CSSValue*, std::destroying_delete_t)’ called on unallocated object ‘WebCore::staticCSSValuePool’ [-Wfree-nonheap-object]
258 | delete this;
I've never seen -Wfree-nonheap-object before ever. Cool.
--
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/20221010/4e3ef341/attachment.htm>
More information about the webkit-unassigned
mailing list