From be58058b0e49cceff1732535b5a9ab57aeb9aa7c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 4 Aug 2023 20:21:25 +0200 Subject: [PATCH] Avoid "function 'testDynamicCast()::S1::~S1' has internal linkage... ...but is not defined" Change-Id: Ib1350d5d34eef0d544ca8f436ae63c693b7d2f5d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155354 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- compilerplugins/clang/test/redundantcast.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compilerplugins/clang/test/redundantcast.cxx b/compilerplugins/clang/test/redundantcast.cxx index f3573d0ad20d..47a155c64b37 100644 --- a/compilerplugins/clang/test/redundantcast.cxx +++ b/compilerplugins/clang/test/redundantcast.cxx @@ -348,7 +348,7 @@ void testSuspiciousReinterpretCast() { void testDynamicCast() { - struct S1 { virtual ~S1(); }; + struct S1 { virtual ~S1() {} }; struct S2 final: S1 {}; struct S3: S1 {};