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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user