From: Edward O'Callaghan Date: Tue, 13 Oct 2009 23:05:14 +0000 (+0000) Subject: Fix for PR 5181. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=15934f92c3b56aa8275d3d77d7b884088ff5d4a7;p=clang Fix for PR 5181. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84051 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp index 23c83175eb..50ebb49e7d 100644 --- a/lib/Sema/SemaDeclAttr.cpp +++ b/lib/Sema/SemaDeclAttr.cpp @@ -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; }