compilers: Remove -Wno-main and -Wno-main-return-type compiler flags
These flags were added to avoid warnings when main was declared to return void. Now that main returns int, those warnings will flag errors. Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
e17191b146
commit
70fdd9e4e1
3 changed files with 0 additions and 4 deletions
|
@ -28,7 +28,6 @@ set_compiler_property(PROPERTY warning_base
|
||||||
-Wformat
|
-Wformat
|
||||||
-Wformat-security
|
-Wformat-security
|
||||||
-Wno-format-zero-length
|
-Wno-format-zero-length
|
||||||
-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
|
-Wno-typedef-redefinition
|
||||||
|
|
|
@ -33,8 +33,6 @@ check_set_compiler_property(PROPERTY warning_base
|
||||||
-Wformat
|
-Wformat
|
||||||
-Wformat-security
|
-Wformat-security
|
||||||
-Wno-format-zero-length
|
-Wno-format-zero-length
|
||||||
-Wno-main
|
|
||||||
-Wno-main-return-type
|
|
||||||
-Wno-unused-but-set-variable
|
-Wno-unused-but-set-variable
|
||||||
-Wno-typedef-redefinition
|
-Wno-typedef-redefinition
|
||||||
-Wno-deprecated-non-prototype
|
-Wno-deprecated-non-prototype
|
||||||
|
|
|
@ -30,7 +30,6 @@ check_set_compiler_property(PROPERTY warning_base
|
||||||
-Wall
|
-Wall
|
||||||
"SHELL:-Wformat -Wformat-security"
|
"SHELL:-Wformat -Wformat-security"
|
||||||
"SHELL:-Wformat -Wno-format-zero-length"
|
"SHELL:-Wformat -Wno-format-zero-length"
|
||||||
-Wno-main
|
|
||||||
)
|
)
|
||||||
|
|
||||||
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