Bug 259729
Summary: | Fails to build with GCC 13 due to overloaded-virtual error in FilterEffect | ||
---|---|---|---|
Product: | WebKit | Reporter: | Carlos Garcia Campos <cgarcia> |
Component: | Platform | Assignee: | Carlos Garcia Campos <cgarcia> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | sabouhallawa, simon.fraser, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Carlos Garcia Campos
In file included from WebKit/Source/WebCore/platform/graphics/filters/FilterResults.h:28,
from WebKit/Source/WebCore/rendering/svg/RenderSVGResourceFilter.h:26,
from WebKit/Source/WebCore/svg/SVGFilterPrimitiveStandardAttributes.h:25,
from WebKit/Source/WebCore/svg/SVGFEBlendElement.h:26,
from WebKit/WebKitBuild/Release/WebCore/DerivedSources/SVGElementFactory.cpp:49,
from WebKit/WebKitBuild/Release/WebCore/DerivedSources/unified-sources/UnifiedSource-3a52ce78-171.cpp:5:
WebKit/Source/WebCore/platform/graphics/filters/FilterEffect.h:44:18: error: ‘virtual bool WebCore::FilterEffect::operator==(const WebCore::FilterEffect&) const’ was hidden [-Werror=overloaded-virtual=]
44 | virtual bool operator==(const FilterEffect&) const;
| ^~~~~~~~
In file included from WebKit/Source/WebCore/platform/graphics/filters/FESpecularLighting.h:25,
from WebKit/Source/WebCore/platform/graphics/filters/FESpecularLighting.h:25,
from WebKit/Source/WebCore/svg/SVGFESpecularLightingElement.h:25,
from WebKit/WebKitBuild/Release/WebCore/DerivedSources/SVGElementFactory.cpp:70:
WebKit/Source/WebCore/platform/graphics/filters/FELighting.h:42:10: note: by ‘bool WebCore::FELighting::operator==(const WebCore::FELighting&) const’
42 | bool operator==(const FELighting&) const;
| ^~~~~~~~
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Carlos Garcia Campos
I fixed it by overriding operator== in FELighting.h and just returning false, since it shouldn't be called, if I understood it correctly, because FELighting is abstract. I don't know if that's the right fix, though.
Carlos Garcia Campos
Pull request: https://github.com/WebKit/WebKit/pull/16310
EWS
Committed 266539@main (c85962a5c0e9): <https://commits.webkit.org/266539@main>
Reviewed commits have been landed. Closing PR #16310 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/113326293>