diff --git a/CMakeLists.txt b/CMakeLists.txt index 98f0c45122d..aec4bc382a7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -361,8 +361,13 @@ else() target_compile_options(ProjectConfig INTERFACE -Wall + -Wno-unknown-warning-option $<$: -Werror # Treat all compiler warnings as errors + + # False positive string overflow + # https://github.com/google/flatbuffers/issues/7366 + -Wno-error=stringop-overflow > -pedantic -Wextra