[clang] [llvm] Enable unnecessary-virtual-specifier by default (PR #133265)
Devon Loehr via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 28 07:44:54 PDT 2025
================
@@ -689,7 +689,7 @@ if ( LLVM_COMPILER_IS_GCC_COMPATIBLE OR CMAKE_CXX_COMPILER_ID MATCHES "XL" )
endif( LLVM_COMPILER_IS_GCC_COMPATIBLE OR CMAKE_CXX_COMPILER_ID MATCHES "XL" )
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
- append("-Werror=unguarded-availability-new" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
+ append("-Werror=unguarded-availability-new -Wno-unnecessary-virtual-specifier" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
----------------
DKLoehr wrote:
Done
https://github.com/llvm/llvm-project/pull/133265
More information about the llvm-commits
mailing list