Skip to content

Commit 26987a7

Browse files
committed
update diagnostic message
1 parent 42a8440 commit 26987a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ def err_mainlike_template_decl : Error<"%0 cannot be a template">;
10311031
def err_main_returns_nonint : Error<"'main' must return 'int'">;
10321032
def ext_main_returns_nonint : ExtWarn<"return type of 'main' is not 'int'">,
10331033
InGroup<MainReturnType>;
1034-
def ext_main_no_return : Extension<"non-void 'main' function does not return a value">,
1034+
def ext_main_no_return : Extension<"implicit '0' return value from 'main' is a C99 extension">,
10351035
InGroup<MainReturnType>;
10361036
def note_main_change_return_type : Note<"change return type to 'int'">;
10371037
def err_main_surplus_args : Error<"too many parameters (%0) for 'main': "

0 commit comments

Comments
 (0)