ArchitectureRules: Add -Wno-error=format-truncation for GCC 8.

It warns on snprintf's output "possibly" being truncated (e.g.,
two B_PATH_NAME_LENGTH chars being concatenated together) which may
be exactly the behavior the programmer wanted. So that's not very
helpful.
This commit is contained in:
Augustin Cavalier
2019-05-23 19:50:51 -04:00
parent 1e78ac9523
commit fef13fb917
+3 -2
View File
@@ -139,8 +139,9 @@ rule ArchitectureSetup architecture
HAIKU_WERROR_FLAGS_$(architecture) += -Wno-error=unused-but-set-variable
-Wno-error=deprecated -Wno-error=deprecated-declarations
-Wno-error=cpp -Wno-error=trigraphs ;
# But this one can stay.
HAIKU_WERROR_FLAGS_$(architecture) += -Wno-error=cast-align ;
# But these can stay.
HAIKU_WERROR_FLAGS_$(architecture) += -Wno-error=cast-align
-Wno-error=format-truncation ;
}
# debug flags