summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/exprs.c
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-04-09 20:26:53 +0000
committerTed Kremenek <kremenek@apple.com>2010-04-09 20:26:53 +0000
commit800b66be9d47e9671f5b83eb99324a6d6c391c48 (patch)
tree43b761c26cafff116597ba6084c8a6775c8017e6 /clang/test/Sema/exprs.c
parentbfe98e644be6df1704fa1b30877153adf904998f (diff)
downloadbcm5719-llvm-800b66be9d47e9671f5b83eb99324a6d6c391c48.tar.gz
bcm5719-llvm-800b66be9d47e9671f5b83eb99324a6d6c391c48.zip
Remove fixit for string literal comparison. Telling the user to use 'strcmp' is bad, and
we don't have enough information to tell them how to use 'strncmp'. Instead, change the diagnostic to indicate they should use 'strncmp'. llvm-svn: 100890
Diffstat (limited to 'clang/test/Sema/exprs.c')
-rw-r--r--clang/test/Sema/exprs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Sema/exprs.c b/clang/test/Sema/exprs.c
index 9acc63fa41a..4df8188e434 100644
--- a/clang/test/Sema/exprs.c
+++ b/clang/test/Sema/exprs.c
@@ -84,7 +84,7 @@ void test11(struct mystruct P, float F) {
// PR3753
int test12(const char *X) {
- return X == "foo"; // expected-warning {{comparison against a string literal is unspecified}}
+ return X == "foo"; // expected-warning {{comparison against a string literal is unspecified (use strncmp instead)}}
}
int test12b(const char *X) {
OpenPOWER on IntegriCloud