Skip to content

Commit

Permalink
[cmake] gcc.cmake: Reduce -Wheader-hygiene to just a warning.
Browse files Browse the repository at this point in the history
We can't easily disable it for just the moc-generated files, so reduce it
from error to warning for now.
  • Loading branch information
GerbilSoft committed Sep 15, 2024
1 parent 9c045b8 commit 6e5d523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/platform/gcc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ADD_DEFINITIONS(-D_GNU_SOURCE=1)
# Test for common CFLAGS and CXXFLAGS.
# NOTE: Not adding -Werror=format-nonliteral because there are some
# legitimate uses of non-literal format strings.
SET(CFLAGS_WARNINGS -Wall -Wextra -Wno-multichar -Werror=return-type -Werror=header-hygiene)
SET(CFLAGS_WARNINGS -Wall -Wextra -Wno-multichar -Werror=return-type -Wheader-hygiene)
SET(CFLAGS_WERROR_FORMAT -Werror=format -Werror=format-security -Werror=format-signedness -Werror=format-truncation -Werror=format-y2k)
SET(CFLAGS_OPTIONS -fstrict-aliasing -Werror=strict-aliasing -fno-common -fcf-protection -fno-math-errno)
IF(MINGW)
Expand Down

0 comments on commit 6e5d523

Please sign in to comment.