aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Bailey <derekbailey@google.com>2022-08-08 19:08:32 -0700
committerGitHub <noreply@github.com>2022-08-08 19:08:32 -0700
commit9230f600d748ec3ca35622f2273e1b99231d31ce (patch)
tree149e283044799da2bc6ab99815fd5a31bf814b85
parentc7936215671c145b03df74f4eabf8e924cf8617f (diff)
downloadflatbuffers-9230f600d748ec3ca35622f2273e1b99231d31ce.tar.gz
Remove stringop-overflow from error (#7422)
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 98f0c451..aec4bc38 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -361,8 +361,13 @@ else()
target_compile_options(ProjectConfig
INTERFACE
-Wall
+ -Wno-unknown-warning-option
$<$<BOOL:${FLATBUFFERS_STRICT_MODE}>:
-Werror # Treat all compiler warnings as errors
+
+ # False positive string overflow
+ # https://github.com/google/flatbuffers/issues/7366
+ -Wno-error=stringop-overflow
>
-pedantic
-Wextra