From f5f0c788b8b013a584fe513eab362d21980c1aea Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Mon, 3 Aug 2020 00:10:57 +0300 Subject: [PATCH] Relax the limit --- cmake/warnings.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmake/warnings.cmake b/cmake/warnings.cmake index c0620258b18..467c246926c 100644 --- a/cmake/warnings.cmake +++ b/cmake/warnings.cmake @@ -21,7 +21,10 @@ endif () option (WEVERYTHING "Enables -Weverything option with some exceptions. This is intended for exploration of new compiler warnings that may be found to be useful. Only makes sense for clang." ON) # Control maximum size of stack frames. It can be important if the code is run in fibers with small stack size. -add_warning(frame-larger-than=32768) +# Only in release build because debug has too large stack frames. +if (NOT CMAKE_BUILD_TYPE_UC STREQUAL "DEBUG") + add_warning(frame-larger-than=16384) +endif () if (COMPILER_CLANG) add_warning(pedantic)