Suppress -Werror=array-bounds for latest GCC
authorYiwei Zhang <zzyiwei@google.com>
Sat, 2 May 2020 05:06:40 +0000 (22:06 -0700)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Tue, 12 May 2020 08:31:00 +0000 (04:31 -0400)
VK-GL-CTS Issue: 2345

Change-Id: Id2a04a13dd3a13cc159919778315218e2f136fca

scripts/check_build_sanity.py

index 621b9bd..67101cd 100644 (file)
@@ -139,7 +139,7 @@ def runSteps (steps):
                        print("Skip: %s" % step.getName())
 
 COMMON_CFLAGS          = ["-Werror", "-Wno-error=unused-function"]
-COMMON_GCC_CFLAGS      = COMMON_CFLAGS + ["-Wno-implicit-fallthrough"]
+COMMON_GCC_CFLAGS      = COMMON_CFLAGS + ["-Wno-implicit-fallthrough", "-Wno-error=array-bounds"]
 COMMON_CLANG_CFLAGS    = COMMON_CFLAGS + ["-Wno-error=unused-command-line-argument"]
 GCC_32BIT_CFLAGS       = COMMON_GCC_CFLAGS + ["-m32"]
 CLANG_32BIT_CFLAGS     = COMMON_CLANG_CFLAGS + ["-m32"]