aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2007-12-11 02:44:30 +0000
committerSteve Naroff <snaroff@apple.com>2007-12-11 02:44:30 +0000
commitafedd225ffcbe39aee080ef7b7245d26dbb0ce58 (patch)
tree8c6a9aaecaea59d96aec4213af10dc6de26f1c6a
parent4e4ee211b56e3276df80b350a6194f7cbf04b92c (diff)
Change err_undef_protocolref to warn_undef_protocolref (this is consistent with GCC).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44840 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--Sema/SemaDecl.cpp6
-rw-r--r--include/clang/Basic/DiagnosticKinds.def2
2 files changed, 4 insertions, 4 deletions
diff --git a/Sema/SemaDecl.cpp b/Sema/SemaDecl.cpp
index c77496f066..0e3e7283b9 100644
--- a/Sema/SemaDecl.cpp
+++ b/Sema/SemaDecl.cpp
@@ -1202,7 +1202,7 @@ Sema::DeclTy *Sema::ActOnStartClassInterface(
for (unsigned int i = 0; i != NumProtocols; i++) {
ObjcProtocolDecl* RefPDecl = ObjcProtocols[ProtocolNames[i]];
if (!RefPDecl || RefPDecl->isForwardDecl())
- Diag(ClassLoc, diag::err_undef_protocolref,
+ Diag(ClassLoc, diag::warn_undef_protocolref,
ProtocolNames[i]->getName(),
ClassName->getName());
IDecl->setIntfRefProtocols((int)i, RefPDecl);
@@ -1283,7 +1283,7 @@ Sema::DeclTy *Sema::ActOnStartProtocolInterface(
for (unsigned int i = 0; i != NumProtoRefs; i++) {
ObjcProtocolDecl* RefPDecl = ObjcProtocols[ProtoRefNames[i]];
if (!RefPDecl || RefPDecl->isForwardDecl())
- Diag(ProtocolLoc, diag::err_undef_protocolref,
+ Diag(ProtocolLoc, diag::warn_undef_protocolref,
ProtoRefNames[i]->getName(),
ProtocolName->getName());
PDecl->setReferencedProtocols((int)i, RefPDecl);
@@ -1366,7 +1366,7 @@ Sema::DeclTy *Sema::ActOnStartCategoryInterface(
for (unsigned int i = 0; i != NumProtoRefs; i++) {
ObjcProtocolDecl* RefPDecl = ObjcProtocols[ProtoRefNames[i]];
if (!RefPDecl || RefPDecl->isForwardDecl()) {
- Diag(CategoryLoc, diag::err_undef_protocolref,
+ Diag(CategoryLoc, diag::warn_undef_protocolref,
ProtoRefNames[i]->getName(),
CategoryName->getName());
}
diff --git a/include/clang/Basic/DiagnosticKinds.def b/include/clang/Basic/DiagnosticKinds.def
index e2be35f317..25f1eea308 100644
--- a/include/clang/Basic/DiagnosticKinds.def
+++ b/include/clang/Basic/DiagnosticKinds.def
@@ -418,7 +418,7 @@ DIAG(err_undef_superclass, ERROR,
"cannot find interface declaration for '%0', superclass of '%1'")
DIAG(err_duplicate_class_def, ERROR,
"duplicate interface declaration for class '%0'")
-DIAG(err_undef_protocolref, ERROR,
+DIAG(warn_undef_protocolref, WARNING,
"cannot find protocol definition for '%0', referenced by '%1'")
DIAG(err_duplicate_protocol_def, ERROR,
"duplicate protocol declaration of '%0'")