diff --git a/cmake/compiler/clang/settings.cmake b/cmake/compiler/clang/settings.cmake index c2f2cf74f..791a58124 100644 --- a/cmake/compiler/clang/settings.cmake +++ b/cmake/compiler/clang/settings.cmake @@ -1,6 +1,8 @@ target_compile_options(zm-warning-interface INTERFACE - -Wall) + -Wall + -Wextra + -Wno-unused-parameter) if(ASAN) target_compile_options(zm-compile-option-interface diff --git a/cmake/compiler/gcc/settings.cmake b/cmake/compiler/gcc/settings.cmake index 4011b5df1..b037a4ea6 100644 --- a/cmake/compiler/gcc/settings.cmake +++ b/cmake/compiler/gcc/settings.cmake @@ -1,6 +1,10 @@ target_compile_options(zm-warning-interface INTERFACE - -Wall) + -Wall + -Wextra + -Wno-cast-function-type + -Wno-type-limits + -Wno-unused-parameter) if(ASAN) target_compile_options(zm-compile-option-interface