]> granicus.if.org Git - clang/commitdiff
Suppress a warning
authorDouglas Gregor <dgregor@apple.com>
Thu, 29 Jan 2009 16:09:46 +0000 (16:09 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 29 Jan 2009 16:09:46 +0000 (16:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63310 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclObjC.cpp

index 3371e3ea6e207fa071ea27e10781aa351f05ecaf..5677bc5e092031b3a332d00c5a56c6958fd0b058 100644 (file)
@@ -1432,8 +1432,8 @@ void Sema::CheckObjCPropertyAttributes(QualType PropertyTy,
                           "copy" : "retain";
                          
     Diag(Loc, (Attributes & (ObjCDeclSpec::DQ_PR_readwrite)) ? 
-                 diag::err_objc_property_attr_mutually_exclusive :
-                 diag::warn_objc_property_attr_mutually_exclusive)
+                 (unsigned)diag::err_objc_property_attr_mutually_exclusive :
+                 (unsigned)diag::warn_objc_property_attr_mutually_exclusive)
       << "readonly" << which;
   }