diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-08-05 02:11:36 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-08-05 02:11:36 +0000 |
commit | 894e4d5d232a23668b3f585fdaa56858cfabf3d3 (patch) | |
tree | e2c6c2744e88e15998b54c085ea7c39e7786dd29 | |
parent | 3f1661d8630ae35ef26fa42f3d896c22bc798088 (diff) |
Change the this -W flag to 'return-stack-address'.
~or~
Paint the bikeshed green.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136959 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Basic/DiagnosticSemaKinds.td | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index a2cd1e1fc4..ce76b605d7 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -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< |