diff options
author | Chris Lattner <sabre@nondot.org> | 2010-04-26 21:44:01 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-04-26 21:44:01 +0000 |
commit | bc0b915148688033e37e9175ddf7629333e45d43 (patch) | |
tree | 356132604ebeccf3da5525248fc65af4df137876 | |
parent | fb87b89fc9eb103e19fb8e4b925c23f0bd091b99 (diff) |
wordsmith an objc warning, rdar://7900756
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102388 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Basic/DiagnosticSemaKinds.td | 2 | ||||
-rw-r--r-- | test/SemaObjC/unused.m | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index 7f2c4b5d84..ea31164dd5 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -2489,7 +2489,7 @@ def warn_unused_voidptr : Warning< "expression result unused; should this cast be to 'void'?">, InGroup<UnusedValue>; def warn_unused_property_expr : Warning< - "property access result unused - getters should not have side effects">, + "property access result unused - getters should not be used for side effects">, InGroup<UnusedValue>; def warn_unused_call : Warning< "ignoring return value of function declared with %0 attribute">, diff --git a/test/SemaObjC/unused.m b/test/SemaObjC/unused.m index 7e1b10433d..1ecf32295e 100644 --- a/test/SemaObjC/unused.m +++ b/test/SemaObjC/unused.m @@ -21,7 +21,7 @@ int test1(void) { @end void test2() { - @"pointless example call for test purposes".length; // expected-warning {{property access result unused - getters should not have side effects}} + @"pointless example call for test purposes".length; // expected-warning {{property access result unused - getters should not be used for side effects}} } @interface foo |