toolchain: arcmwdt: add compile options: -Wno-typedef-redefinition

Without the -Wno-typedef-redefinition option, arcmwdt (clang based)
complains if a typedef gets redefined in gnu99  mode (since this is
officially a C11 feature). While new versions of GCC do not seem to
issue this warning in gnu99 mode anymore. So some existing code
with typedef redefined which works well with GCC will issue this
warning. As this warning is not fatal, so simply shut it off for good.

Signed-off-by: Watson Zeng <zhiwei@synopsys.com>
This commit is contained in:
Watson Zeng 2020-09-25 10:10:08 +08:00 committed by Maureen Helm
commit 2354f055ec

View file

@ -31,6 +31,7 @@ set_compiler_property(PROPERTY warning_base
-Wno-main-return-type
-Wno-unaligned-pointer-conversion
-Wno-incompatible-pointer-types-discards-qualifiers
-Wno-typedef-redefinition
)
check_set_compiler_property(APPEND PROPERTY warning_base -Wno-pointer-sign)