Disable -Wpointer-sign warnings per default; base gcc does the same.

from Brad (maintainer)
This commit is contained in:
ajacoutot 2017-02-12 11:25:19 +00:00
parent 727cb9da7d
commit 416cf24370
2 changed files with 19 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.131 2017/02/10 09:37:43 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.132 2017/02/12 11:25:19 ajacoutot Exp $
# XXX: Remember to bump MODCLANG_VERSION in lang/clang/clang.port.mk when
# updating this port.
@ -16,6 +16,7 @@ DISTNAME = llvm-${LLVM_V}.src
PKGNAME = llvm-${LLVM_V}
PKGNAME-main = llvm-${LLVM_V}
PKGNAME-python = py-llvm-${LLVM_V}
REVISION-main = 0
CATEGORIES = devel
DISTFILES = llvm-${LLVM_V}.src${EXTRACT_SUFX}
MASTER_SITES = http://comstyle.com/source/

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-tools_clang_include_clang_Basic_DiagnosticSemaKinds_td,v 1.1 2017/02/12 11:25:19 ajacoutot Exp $
Disable -Wpointer-sign warnings per default
base gcc does the same.
--- tools/clang/include/clang/Basic/DiagnosticSemaKinds.td.orig Sun Feb 12 04:37:29 2017
+++ tools/clang/include/clang/Basic/DiagnosticSemaKinds.td Sun Feb 12 04:39:28 2017
@@ -6534,7 +6534,7 @@ def ext_typecheck_convert_incompatible_pointer_sign :
"sending to parameter of different type}0,1"
"|%diff{casting $ to type $|casting between types}0,1}2"
" converts between pointers to integer types with different sign">,
- InGroup<DiagGroup<"pointer-sign">>;
+ InGroup<DiagGroup<"pointer-sign">>, DefaultIgnore;
def ext_typecheck_convert_incompatible_pointer : ExtWarn<
"incompatible pointer types "
"%select{%diff{assigning to $ from $|assigning to different types}0,1"