Skip to content

Commit

Permalink
Use -Wno-error=stringop-overread in Werror mode to bypass GCC bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
randombit committed Sep 23, 2023
1 parent 1f26e75 commit f3be40d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build-data/cc/gcc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ warning_flags "-Wall -Wextra -Wpedantic -Wstrict-aliasing -Wcast-align -Wmissing

# Boost headers have 0 as nullptr and non-virtual-dtor issues so we can't werror on them
# Have to disable maybe-uninitialized due to GCC bugs like https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105937
werror_flags "-Werror -Wno-error=strict-overflow -Wno-error=zero-as-null-pointer-constant -Wno-error=non-virtual-dtor -Wno-error=maybe-uninitialized"
werror_flags "-Werror -Wno-error=strict-overflow -Wno-error=zero-as-null-pointer-constant -Wno-error=non-virtual-dtor -Wno-error=maybe-uninitialized -Wno-error=stringop-overread"

maintainer_warning_flags "-Wstrict-overflow=5"

Expand Down

0 comments on commit f3be40d

Please sign in to comment.