]> granicus.if.org Git - clang/commitdiff
Fix for PR 5181.
authorEdward O'Callaghan <eocallaghan@auroraux.org>
Tue, 13 Oct 2009 23:05:14 +0000 (23:05 +0000)
committerEdward O'Callaghan <eocallaghan@auroraux.org>
Tue, 13 Oct 2009 23:05:14 +0000 (23:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84051 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclAttr.cpp

index 23c83175eb8fe29dbc80e42af36e643a4c5d2f89..50ebb49e7d5b49222bfa49d8e0118454b2da6d46 100644 (file)
@@ -1246,10 +1246,13 @@ static void HandleFormatAttr(Decl *d, const AttributeList &Attr, Sema &S) {
   case 5: Supported = !memcmp(Format, "scanf", 5); break;
   case 6: Supported = !memcmp(Format, "printf", 6); break;
   case 7: Supported = !memcmp(Format, "printf0", 7) ||
-                      !memcmp(Format, "strfmon", 7); break;
+                      !memcmp(Format, "strfmon", 7) ||
+                      !memcmp(Format, "cmn_err", 7); break;
   case 8:
     Supported = (is_strftime = !memcmp(Format, "strftime", 8)) ||
                 (is_NSString = !memcmp(Format, "NSString", 8)) ||
+                !memcmp(Format, "vcmn_err", 8) ||
+                !memcmp(Format, "zcmn_err", 8) ||
                 (is_CFString = !memcmp(Format, "CFString", 8));
     break;
   }