]> granicus.if.org Git - clang/commitdiff
Remove main() *errors* from warning group.
authorTed Kremenek <kremenek@apple.com>
Thu, 18 Aug 2011 21:20:46 +0000 (21:20 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 18 Aug 2011 21:20:46 +0000 (21:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137983 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticSemaKinds.td

index 06664cc58e15946223ce0bfb789ecd1bf6b1192a..503c9d6af9f5d7717607a9ca7fc5245e2a1891bb 100644 (file)
@@ -292,21 +292,16 @@ def warn_unusual_main_decl : Warning<"'main' should not be declared "
     "%select{static|inline|static or inline}0">,
     InGroup<Main>;
 def err_unusual_main_decl : Error<"'main' is not allowed to be declared "
-    "%select{static|inline|static or inline}0">,
-    InGroup<Main>;
-def err_main_template_decl : Error<"'main' cannot be a template">,
-    InGroup<Main>;
-def err_main_returns_nonint : Error<"'main' must return 'int'">,
-    InGroup<Main>;
+    "%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<Main>;
+    "must be 0, 2, or 3">;
 def warn_main_one_arg : Warning<"only one parameter on 'main' declaration">,
     InGroup<Main>;
 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<Main>;
+    "platform-specific data}0) must be of type %1">;
 
 /// parser diagnostics
 def ext_typedef_without_a_name : ExtWarn<"typedef requires a name">,