directfb: Disable dtor-typedef warning with clang11
PATCH 1/1 directfb: Disable dtor-typedef warning with clang11
Fixes build
src/core/Renderer.cpp:2021:21: error: destructor cannot be declared using a typedef 'DirectFB::Renderer::Throttle' (aka 'DirectFB::Throttle') of the class name [-Wdtor-typedef] Renderer::Throttle::~Throttle()
^
Signed-off-by Khem Raj <[email protected]>
--- meta-oe/recipes-graphics/directfb/directfb.inc | 2 ++ 1 file changed, 2 insertions(+)
meta-oe/recipes-graphics/directfb/directfb.inc +2 -0
@@ -28,6 +28,8 @@ S = "${WORKDIR}/DirectFB-${PV}" LDFLAGS_append = " -lm" +CXXFLAGS_append_toolchain-clang = " -Wno-error=dtor-typedef" + # Workaround for linking issues seen with armv7a + gold LDFLAGS_append_arm = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"
Signature · 1 line
2.28.0