hal: infineon: handle gcc flag

Move -Wno-array-bounds from being hardcoded to a compiler
property

Signed-off-by: Robin Kastberg <robin.kastberg@iar.com>
This commit is contained in:
Robin Kastberg 2025-02-24 10:41:02 +00:00 committed by Benjamin Cabé
commit da384651ec
5 changed files with 10 additions and 2 deletions

View file

@ -249,6 +249,7 @@ set_compiler_property(PROPERTY no_position_independent
set_compiler_property(PROPERTY no_global_merge "")
set_compiler_property(PROPERTY warning_shadow_variables -Wshadow)
set_compiler_property(PROPERTY warning_no_array_bounds -Wno-array-bounds)
set_compiler_property(PROPERTY no_builtin -fno-builtin)
set_compiler_property(PROPERTY no_builtin_malloc -fno-builtin-malloc)