We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42a8440 commit 26987a7Copy full SHA for 26987a7
clang/include/clang/Basic/DiagnosticSemaKinds.td
@@ -1031,7 +1031,7 @@ def err_mainlike_template_decl : Error<"%0 cannot be a template">;
1031
def err_main_returns_nonint : Error<"'main' must return 'int'">;
1032
def ext_main_returns_nonint : ExtWarn<"return type of 'main' is not 'int'">,
1033
InGroup<MainReturnType>;
1034
-def ext_main_no_return : Extension<"non-void 'main' function does not return a value">,
+def ext_main_no_return : Extension<"implicit '0' return value from 'main' is a C99 extension">,
1035
1036
def note_main_change_return_type : Note<"change return type to 'int'">;
1037
def err_main_surplus_args : Error<"too many parameters (%0) for 'main': "
0 commit comments