[cfe-commits] r44840 - in /cfe/trunk: Sema/SemaDecl.cpp include/clang/Basic/DiagnosticKinds.def

Steve Naroff snaroff at apple.com
Mon Dec 10 18:44:33 PST 2007


Author: snaroff
Date: Mon Dec 10 20:44:30 2007
New Revision: 44840

URL: http://llvm.org/viewvc/llvm-project?rev=44840&view=rev
Log:

Change err_undef_protocolref to warn_undef_protocolref (this is consistent with GCC).


Modified:
    cfe/trunk/Sema/SemaDecl.cpp
    cfe/trunk/include/clang/Basic/DiagnosticKinds.def

Modified: cfe/trunk/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Sema/SemaDecl.cpp?rev=44840&r1=44839&r2=44840&view=diff

==============================================================================
--- cfe/trunk/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/Sema/SemaDecl.cpp Mon Dec 10 20:44:30 2007
@@ -1202,7 +1202,7 @@
     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 @@
     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 @@
     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());
       }

Modified: cfe/trunk/include/clang/Basic/DiagnosticKinds.def
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticKinds.def?rev=44840&r1=44839&r2=44840&view=diff

==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticKinds.def (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticKinds.def Mon Dec 10 20:44:30 2007
@@ -418,7 +418,7 @@
      "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'")





More information about the cfe-commits mailing list