From 00e6178dff40d17676f1ceb2b5a28e47f9272de4 Mon Sep 17 00:00:00 2001 From: Rob Bocchino Date: Mon, 3 Mar 2025 09:35:20 -0800 Subject: [PATCH] Revise warning flags --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 749d502d91..3c47108e6b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,6 +30,14 @@ add_compile_options( -pedantic ) +# Turn off -Wshadow for now in unit testing +# The generated code needs additional fixes +if (BUILD_TESTING) + add_compile_options( + -Wno-shadow + ) +endif() + # Disable compiler-specific checks that F' doesn't comply with. # # -Wno-vla-extension: Variable length arrays are required to support sending to async serializable