diff options
author | Chris Lattner <sabre@nondot.org> | 2011-02-18 17:05:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-02-18 17:05:55 +0000 |
commit | cd5b306f1b79c8a82fb0bdb4cf353021ea452fed (patch) | |
tree | 09ddc0114909f9c15dd3cc293c5023faaa6aff38 /lib/Sema/SemaDeclAttr.cpp | |
parent | c9109297856fd32f10c29127c3cdae6a38019a3e (diff) |
accept and ignore a few things for better OpenBSD compatibility,
patch by Amit Kulkarni!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125944 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclAttr.cpp')
-rw-r--r-- | lib/Sema/SemaDeclAttr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp index 54e9405cba..cbc940f2f0 100644 --- a/lib/Sema/SemaDeclAttr.cpp +++ b/lib/Sema/SemaDeclAttr.cpp @@ -1603,7 +1603,8 @@ static FormatAttrKind getFormatAttrKind(llvm::StringRef Format) { if (Format == "scanf" || Format == "printf" || Format == "printf0" || Format == "strfmon" || Format == "cmn_err" || Format == "strftime" || Format == "NSString" || Format == "CFString" || Format == "vcmn_err" || - Format == "zcmn_err") + Format == "zcmn_err" || + Format == "kprintf") // OpenBSD. return SupportedFormat; if (Format == "gcc_diag" || Format == "gcc_cdiag" || |