diff options
| -rw-r--r-- | .clang-tidy | 2 | ||||
| -rw-r--r-- | CMakeLists.txt | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/.clang-tidy b/.clang-tidy index e110ab1f..6a12fccd 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -91,3 +91,5 @@ HeaderFilterRegex: "(arch|kernel|kapi|kstd)/.*\\.hpp" SystemHeaders: true RemovedArgs: - -fcondition-coverage +ExtraArgsBefore: + - -Wno-unknown-warning-option
\ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index 8f622050..852ef690 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -88,13 +88,13 @@ if(NOT BUILD_TESTING) add_compile_options( "$<$<CXX_COMPILER_ID:GNU>:-fstack-usage>" - "$<$<CXX_COMPILER_ID:GNU>:-Wframe-larger-than=${STACK_FRAME_LIMIT}>" + "$<$<CXX_COMPILER_ID:GNU>:-Wstack-usage=${STACK_FRAME_LIMIT}>" ) add_link_options( "$<$<CXX_COMPILER_ID:GNU>:-fstack-usage>" - "$<$<CXX_COMPILER_ID:GNU>:-Wframe-larger-than=${STACK_FRAME_LIMIT}>" - "$<$<CXX_COMPILER_ID:GNU>:-Werror=frame-larger-than=${STACK_FRAME_LIMIT}>" + "$<$<CXX_COMPILER_ID:GNU>:-Wstack-usage=${STACK_FRAME_LIMIT}>" + "$<$<CXX_COMPILER_ID:GNU>:-Werror=stack-usage=${STACK_FRAME_LIMIT}>" ) unset(STACK_FRAME_LIMIT) |
