From: Ted Kremenek Date: Thu, 18 Aug 2011 21:20:46 +0000 (+0000) Subject: Remove main() *errors* from warning group. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3366582a026ce8044d58352088df358a9e987508;p=clang Remove main() *errors* from warning group. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137983 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index 06664cc58e..503c9d6af9 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -292,21 +292,16 @@ def warn_unusual_main_decl : Warning<"'main' should not be declared " "%select{static|inline|static or inline}0">, InGroup
; def err_unusual_main_decl : Error<"'main' is not allowed to be declared " - "%select{static|inline|static or inline}0">, - InGroup
; -def err_main_template_decl : Error<"'main' cannot be a template">, - InGroup
; -def err_main_returns_nonint : Error<"'main' must return 'int'">, - InGroup
; + "%select{static|inline|static or inline}0">; +def err_main_template_decl : Error<"'main' cannot be a template">; +def err_main_returns_nonint : Error<"'main' must return 'int'">; def err_main_surplus_args : Error<"too many parameters (%0) for 'main': " - "must be 0, 2, or 3">, - InGroup
; + "must be 0, 2, or 3">; def warn_main_one_arg : Warning<"only one parameter on 'main' declaration">, InGroup
; def err_main_arg_wrong : Error<"%select{first|second|third|fourth}0 " "parameter of 'main' (%select{argument count|argument array|environment|" - "platform-specific data}0) must be of type %1">, - InGroup
; + "platform-specific data}0) must be of type %1">; /// parser diagnostics def ext_typedef_without_a_name : ExtWarn<"typedef requires a name">,