Mon Apr 20 13:04:10 2020 UTC ()
Don't let clang warn about comparing pointers with string literals.


(joerg)
diff -r1.21 -r1.22 src/external/bsd/nvi/usr.bin/nvi/Makefile
diff -r1.22 -r1.23 src/external/ibm-public/postfix/Makefile.inc
diff -r1.10 -r1.11 src/external/mit/xorg/bin/xkbcomp/Makefile

cvs diff -r1.21 -r1.22 src/external/bsd/nvi/usr.bin/nvi/Makefile (expand / switch to context diff)
--- src/external/bsd/nvi/usr.bin/nvi/Makefile 2020/04/12 17:28:57 1.21
+++ src/external/bsd/nvi/usr.bin/nvi/Makefile 2020/04/20 13:04:10 1.22
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.21 2020/04/12 17:28:57 martin Exp $
+#	$NetBSD: Makefile,v 1.22 2020/04/20 13:04:10 joerg Exp $
 
 .include <bsd.own.mk>
 
@@ -17,6 +17,7 @@
 CWARNFLAGS.gcc+=	-Wno-unused
 CWARNFLAGS.clang+=	-Wno-unsequenced
 .endif
+CWARNFLAGS.clang+=	-Wno-error=string-compare
 
 CPPFLAGS+=-I${DIST}/include -I${.CURDIR} -I.
 CPPFLAGS+=-DGTAGS -DIMCTRL

cvs diff -r1.22 -r1.23 src/external/ibm-public/postfix/Makefile.inc (expand / switch to context diff)
--- src/external/ibm-public/postfix/Makefile.inc 2020/04/04 15:45:45 1.22
+++ src/external/ibm-public/postfix/Makefile.inc 2020/04/20 13:04:10 1.23
@@ -1,9 +1,10 @@
-#	$NetBSD: Makefile.inc,v 1.22 2020/04/04 15:45:45 christos Exp $
+#	$NetBSD: Makefile.inc,v 1.23 2020/04/20 13:04:10 joerg Exp $
 
 .include <bsd.own.mk>
 
 USE_FORT?= yes	# network client and server
-CWARNFLAGS.clang+=	-Wno-empty-body -Wno-format-extra-args -Wno-string-plus-int
+CWARNFLAGS.clang+=	-Wno-empty-body -Wno-format-extra-args \
+			-Wno-string-plus-int -Wno-string-compare
 WARNS?=	0
 
 PFIX_DISTDIR=	${NETBSDSRCDIR}/external/ibm-public/postfix/dist

cvs diff -r1.10 -r1.11 src/external/mit/xorg/bin/xkbcomp/Makefile (expand / switch to context diff)
--- src/external/mit/xorg/bin/xkbcomp/Makefile 2015/07/20 23:50:23 1.10
+++ src/external/mit/xorg/bin/xkbcomp/Makefile 2020/04/20 13:04:10 1.11
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.10 2015/07/20 23:50:23 mrg Exp $
+#	$NetBSD: Makefile,v 1.11 2020/04/20 13:04:10 joerg Exp $
 
 .include <bsd.own.mk>
 .include "Makefile.common"
@@ -28,7 +28,7 @@
 .PATH:	${X11SRCDIR.${PROG}}
 .PATH:	${X11SRCDIR.${PROG}}/man
 
-CWARNFLAGS.clang+=	-Wno-parentheses
+CWARNFLAGS.clang+=	-Wno-parentheses -Wno-string-compare
 
 .include "../../xorg-pkg-ver.mk"