Clang Flag: -Wmain / -Wno-main
Jump to navigation
Jump to search
Supergroups
Subroups
Warnings/Remarks
Default Active (Deactivate with -Wno-main)
ext_noreturn_main | warning: 'main' is not allowed to be declared _Noreturn |
ext_variadic_main | warning: 'main' is not allowed to be declared variadic |
warn_main_one_arg | warning: only one parameter on 'main' declaration |
warn_main_redefined | warning: variable named 'main' with external linkage has undefined behavior |
warn_main_returns_bool_literal | warning: bool literal returned from 'main' |
warn_static_main | warning: 'main' should not be declared static |
Default Inactive (Activate with -Wmain)
ext_main_used | warning: ISO C++ does not allow 'main' to be used by a program |