[cfe-commits] r66388 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.def test/Sema/exprs.c
Chris Lattner
sabre at nondot.org
Sun Mar 8 12:52:14 PDT 2009
Author: lattner
Date: Sun Mar 8 14:52:14 2009
New Revision: 66388
URL: http://llvm.org/viewvc/llvm-project?rev=66388&view=rev
Log:
undefined -> unspecified. Thanks Mike.
Modified:
cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.def
cfe/trunk/test/Sema/exprs.c
Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.def
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.def?rev=66388&r1=66387&r2=66388&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.def (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.def Sun Mar 8 14:52:14 2009
@@ -1349,7 +1349,8 @@
DIAG(warn_selfcomparison, WARNING,
"self-comparison always results in a constant value")
DIAG(warn_stringcompare, WARNING,
- "comparison against a string literal is undefined (use strcmp?)")
+ "result of comparison against a string literal is unspecified"
+ " (use strcmp?)")
// Blocks
Modified: cfe/trunk/test/Sema/exprs.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/exprs.c?rev=66388&r1=66387&r2=66388&view=diff
==============================================================================
--- cfe/trunk/test/Sema/exprs.c (original)
+++ cfe/trunk/test/Sema/exprs.c Sun Mar 8 14:52:14 2009
@@ -78,6 +78,6 @@
// PR3753
int test12(const char *X) {
- return X == "foo"; // expected-warning {{comparison against a string literal is undefined}}
+ return X == "foo"; // expected-warning {{comparison against a string literal is unspecified}}
}
More information about the cfe-commits
mailing list