compiler/xcc: Remove -Werror flag unknown to XCC

XCC (based on GCC 4.2) doesn't recognize -Wvla (for variable-length
array), so remove it from "warning_error_misra_sane" property.

Signed-off-by: Ederson de Souza <ederson.desouza@intel.com>
This commit is contained in:
Ederson de Souza 2022-02-16 07:36:53 -08:00 committed by Anas Nashif
commit 780bc430e3

View file

@ -18,4 +18,6 @@ else()
# time. Suppress the warning, it's the best we can do given that
# it's a legacy compiler.
set_compiler_property(APPEND PROPERTY warning_base "-fgnu89-inline")
set_compiler_property(PROPERTY warning_error_misra_sane)
endif()