diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5b014d8ea5313a973295f4ca6c1f30cff4ca1805..f744475d2bcc8cb925cca931b0b7508b5523b267 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -41,6 +41,10 @@ endif()
 ###                  ###
 
 set(${CMAKE_C_COMPILER_ID}_C_FLAGS)
+set(${CMAKE_BUILD_TYPE}_C_FLAGS)
+set(RelWithDebInfo_C_FLAGS
+    -Wno-switch # For the CI
+)
 set(COMMON_C_FLAGS
     -Wall -Wextra -Werror
     -Wshadow