From c20011f985ef60855f99dc515b4d407aed0e1eab Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 10 Sep 2026 09:01:53 +0200 Subject: build: include dynamic stack size in warnings --- .clang-tidy | 2 ++ 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( "$<$:-fstack-usage>" - "$<$:-Wframe-larger-than=${STACK_FRAME_LIMIT}>" + "$<$:-Wstack-usage=${STACK_FRAME_LIMIT}>" ) add_link_options( "$<$:-fstack-usage>" - "$<$:-Wframe-larger-than=${STACK_FRAME_LIMIT}>" - "$<$:-Werror=frame-larger-than=${STACK_FRAME_LIMIT}>" + "$<$:-Wstack-usage=${STACK_FRAME_LIMIT}>" + "$<$:-Werror=stack-usage=${STACK_FRAME_LIMIT}>" ) unset(STACK_FRAME_LIMIT) -- cgit v1.2.3