From bc0b915148688033e37e9175ddf7629333e45d43 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 26 Apr 2010 21:44:01 +0000 Subject: [PATCH] wordsmith an objc warning, rdar://7900756 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102388 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/DiagnosticSemaKinds.td | 2 +- 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; 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; 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 -- 2.40.0