Module Name:    src
Committed By:   rillig
Date:           Sat May 14 11:26:23 UTC 2022

Modified Files:
        src/external/mit/xorg/lib/libxcb/libxcb: Makefile

Log Message:
libxcb: suppress lint warnings that are not useful


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/external/mit/xorg/lib/libxcb/libxcb/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mit/xorg/lib/libxcb/libxcb/Makefile
diff -u src/external/mit/xorg/lib/libxcb/libxcb/Makefile:1.10 src/external/mit/xorg/lib/libxcb/libxcb/Makefile:1.11
--- src/external/mit/xorg/lib/libxcb/libxcb/Makefile:1.10	Thu Jun  7 18:16:55 2018
+++ src/external/mit/xorg/lib/libxcb/libxcb/Makefile	Sat May 14 11:26:23 2022
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.10 2018/06/07 18:16:55 rjs Exp $
+#	$NetBSD: Makefile,v 1.11 2022/05/14 11:26:23 rillig Exp $
 
 .include <bsd.own.mk>
 
@@ -29,6 +29,14 @@ CPPFLAGS+=	-I${X11SRCDIR.${LIB}}/../incl
 #CPPFLAGS+=	-I${.CURDIR}/../files
 CPPFLAGS+=	-I${DESTDIR}${X11INCDIR}/xcb
 
+# Mostly autogenerated code, the casts are used in pointer arithmetics as well
+# as for iovec.
+LINTFLAGS+=	-X 132	# conversion from '%s' to '%s' may lose accuracy
+LINTFLAGS+=	-X 135	# converting '%s' to '%s' may cause alignment problem
+LINTFLAGS+=	-X 247	# pointer cast from '%s' to '%s' may be troublesome
+LINTFLAGS+=	-X 275	# cast discards 'const' from type '%s'
+LINTFLAGS+=	-X 298	# conversion from '%s' to '%s' may lose accuracy, arg #%d
+
 LIBDPLIBS=\
 	Xau	${.CURDIR}/../../libXau \
 	Xdmcp	${.CURDIR}/../../libXdmcp

Reply via email to