Ignore bounded attribute and kprintf format for now, to reduce the number
of warnings we don't care about. ok sthen@
This commit is contained in:
parent
3ae931a616
commit
e9acc9f4a7
@ -1,10 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.16 2009/08/09 20:16:41 jsg Exp $
|
||||
# $OpenBSD: Makefile,v 1.17 2009/08/16 09:54:28 jsg Exp $
|
||||
|
||||
COMMENT = Low Level Virtual Machine (LLVM) compiler infrastructure
|
||||
|
||||
LLVM_V = 2.6pre20090808
|
||||
DISTNAME = llvm-${LLVM_V}
|
||||
PKGNAME = ${DISTNAME}p0
|
||||
PKGNAME = ${DISTNAME}p1
|
||||
EXTRACT_SUFX = .tar.bz2
|
||||
|
||||
CATEGORIES = devel
|
||||
|
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-tools_clang_lib_Parse_AttributeList_cpp,v 1.1 2009/08/16 09:54:28 jsg Exp $
|
||||
--- tools/clang/lib/Parse/AttributeList.cpp.orig Sat Aug 8 01:35:04 2009
|
||||
+++ tools/clang/lib/Parse/AttributeList.cpp Sat Aug 15 14:12:37 2009
|
||||
@@ -76,6 +76,7 @@ AttributeList::Kind AttributeList::getKind(const Ident
|
||||
break;
|
||||
case 7:
|
||||
if (!memcmp(Str, "aligned", 7)) return AT_aligned;
|
||||
+ if (!memcmp(Str, "bounded", 7)) return IgnoredAttribute;
|
||||
if (!memcmp(Str, "cleanup", 7)) return AT_cleanup;
|
||||
if (!memcmp(Str, "nodebug", 7)) return AT_nodebug;
|
||||
if (!memcmp(Str, "nonnull", 7)) return AT_nonnull;
|
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-tools_clang_lib_Sema_SemaDeclAttr_cpp,v 1.1 2009/08/16 09:54:28 jsg Exp $
|
||||
--- tools/clang/lib/Sema/SemaDeclAttr.cpp.orig Sun Aug 9 00:01:03 2009
|
||||
+++ tools/clang/lib/Sema/SemaDeclAttr.cpp Sat Aug 15 14:12:37 2009
|
||||
@@ -1213,7 +1213,8 @@ static void HandleFormatAttr(Decl *d, const AttributeL
|
||||
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, "kprintf", 7); break;
|
||||
case 8:
|
||||
Supported = (is_strftime = !memcmp(Format, "strftime", 8)) ||
|
||||
(is_NSString = !memcmp(Format, "NSString", 8)) ||
|
Loading…
Reference in New Issue
Block a user