[cfe-commits] r102388 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td test/SemaObjC/unused.m
Chris Lattner
sabre at nondot.org
Mon Apr 26 14:44:01 PDT 2010
Author: lattner
Date: Mon Apr 26 16:44:01 2010
New Revision: 102388
URL: http://llvm.org/viewvc/llvm-project?rev=102388&view=rev
Log:
wordsmith an objc warning, rdar://7900756
Modified:
cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
cfe/trunk/test/SemaObjC/unused.m
Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=102388&r1=102387&r2=102388&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Mon Apr 26 16:44:01 2010
@@ -2489,7 +2489,7 @@
"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">,
Modified: cfe/trunk/test/SemaObjC/unused.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/unused.m?rev=102388&r1=102387&r2=102388&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/unused.m (original)
+++ cfe/trunk/test/SemaObjC/unused.m Mon Apr 26 16:44:01 2010
@@ -21,7 +21,7 @@
@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
More information about the cfe-commits
mailing list