]> granicus.if.org Git - clang/commitdiff
Change the this -W flag to 'return-stack-address'.
authorChandler Carruth <chandlerc@gmail.com>
Fri, 5 Aug 2011 02:11:36 +0000 (02:11 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 5 Aug 2011 02:11:36 +0000 (02:11 +0000)
  ~or~

Paint the bikeshed green.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136959 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticSemaKinds.td

index a2cd1e1fc47392389893696d6bfdec0ca9950b24..ce76b605d77a1ce79a1ed00798010e7069ea5418 100644 (file)
@@ -4158,19 +4158,19 @@ def warn_scanf_scanlist_incomplete : Warning<
 // CHECK: returning address/reference of stack memory
 def warn_ret_stack_addr : Warning<
   "address of stack memory associated with local variable %0 returned">,
-  InGroup<DiagGroup<"return-local-address">>;
+  InGroup<DiagGroup<"return-stack-address">>;
 def warn_ret_stack_ref : Warning<
   "reference to stack memory associated with local variable %0 returned">,
-  InGroup<DiagGroup<"return-local-address">>;
+  InGroup<DiagGroup<"return-stack-address">>;
 def warn_ret_local_temp_addr : Warning<
   "returning address of local temporary object">,
-  InGroup<DiagGroup<"return-local-address">>;
+  InGroup<DiagGroup<"return-stack-address">>;
 def warn_ret_local_temp_ref : Warning<
   "returning reference to local temporary object">,
-  InGroup<DiagGroup<"return-local-address">>;
+  InGroup<DiagGroup<"return-stack-address">>;
 def warn_ret_addr_label : Warning<
   "returning address of label, which is local">,
-  InGroup<DiagGroup<"return-local-address">>;
+  InGroup<DiagGroup<"return-stack-address">>;
 def err_ret_local_block : Error<
   "returning block that lives on the local stack">;
 def note_ref_var_local_bind : Note<