From fef13fb917b88a0e7e9b008ebbca82a6ddd68bb5 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Thu, 23 May 2019 19:50:51 -0400 Subject: [PATCH] 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. --- build/jam/ArchitectureRules | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build/jam/ArchitectureRules b/build/jam/ArchitectureRules index 4e3100621b..b91d689b8f 100644 --- a/build/jam/ArchitectureRules +++ b/build/jam/ArchitectureRules @@ -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