2022-02-18 07:32:27 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2022-02-02 01:47:54 +08:00
|
|
|
|
2022-02-18 07:32:27 +08:00
|
|
|
include(${ZEPHYR_BASE}/cmake/compiler/gcc/compiler_flags.cmake)
|
2021-09-08 06:34:04 +08:00
|
|
|
|
2022-02-18 07:32:27 +08:00
|
|
|
# XCC is based on GCC 4.2 which has a somewhat pedantic take on the
|
|
|
|
# fact that linkage semantics differed between C99 and GNU at the
|
|
|
|
# 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")
|
2022-02-16 23:36:53 +08:00
|
|
|
|
2022-02-18 07:32:27 +08:00
|
|
|
set_compiler_property(PROPERTY warning_error_misra_sane)
|