================
@@ -1031,6 +1031,8 @@ def err_mainlike_template_decl : Error<"%0 cannot be a
template">;
def err_main_returns_nonint : Error<"'main' must return 'int'">;
def ext_main_returns_nonint : ExtWarn<"return type of 'main' is not 'int'">,
InGroup<MainReturnType>;
+def ext_main_no_return : Extension<"implicit '0' return value from 'main' is a
C99 extension">,
+ InGroup<MainReturnType>;
----------------
AaronBallman wrote:
```suggestion
def ext_main_no_return : Extension<
"implicit '0' return value from 'main' is a C99 extension">,
InGroup<MainReturnType>;
```
https://github.com/llvm/llvm-project/pull/134617
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits