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:
Keith Packard 2023-02-08 09:30:12 -08:00 committed by Stephanos Ioannidis
commit 70fdd9e4e1
3 changed files with 0 additions and 4 deletions

View file

@ -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

View file

@ -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

View file

@ -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)