From 4b72fc0b7bd66ecb5dfcb2e5a14e462b64f0ac89 Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Wed, 13 Mar 2024 13:28:09 -0700 Subject: [PATCH] Try -fstrict-enums https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87951 suggests this might make the control-flow warning go away --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ea25230..7013108 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,7 +22,7 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) "MinSizeRel" "RelWithDebInfo") endif() -add_compile_options(-fdata-sections -ffunction-sections) +add_compile_options(-fdata-sections -ffunction-sections -fstrict-enums) # This is encouraged according to # https://valgrind.org/docs/manual/manual-core-adv.html#manual-core-adv.clientreq