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:
parent
5e93790dae
commit
2354f055ec
1 changed files with 1 additions and 0 deletions
|
@ -31,6 +31,7 @@ set_compiler_property(PROPERTY warning_base
|
||||||
-Wno-main-return-type
|
-Wno-main-return-type
|
||||||
-Wno-unaligned-pointer-conversion
|
-Wno-unaligned-pointer-conversion
|
||||||
-Wno-incompatible-pointer-types-discards-qualifiers
|
-Wno-incompatible-pointer-types-discards-qualifiers
|
||||||
|
-Wno-typedef-redefinition
|
||||||
)
|
)
|
||||||
|
|
||||||
check_set_compiler_property(APPEND PROPERTY warning_base -Wno-pointer-sign)
|
check_set_compiler_property(APPEND PROPERTY warning_base -Wno-pointer-sign)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue