mirror of
https://github.com/apache/nuttx.git
synced 2026-08-29 13:20:45 +00:00
tools/ci: skip -Warray-bounds check due to bug of GCC-12.2
Wrong warning array subscript [0] is outside array bounds: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523 Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
parent
fcefd16586
commit
60a0c2ed87
1 changed files with 11 additions and 0 deletions
|
|
@ -227,6 +227,17 @@ else
|
|||
ARCHOPTIMIZATION += -fno-builtin
|
||||
endif
|
||||
endif
|
||||
|
||||
# Workaround to skip -Warray-bounds check due to bug of GCC-12.2:
|
||||
# Wrong warning array subscript [0] is outside array bounds:
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523
|
||||
|
||||
GCCVER = $(shell $(CC) --version | grep gcc | sed -r 's/.* ([0-9]+\.[0-9]+\.[0-9]+).*/\1/')
|
||||
|
||||
ifeq ($(GCCVER),12.2.1)
|
||||
ARCHOPTIMIZATION += --param=min-pagesize=0
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
# Zig compiler
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue