Module Name:    src
Committed By:   rillig
Date:           Thu Oct 31 08:18:20 UTC 2024

Modified Files:
        src/external/mit/xorg/lib/libxcb: xcb.mk

Log Message:
libxcb: suppress the most common lint warnings

The code constantly converts between pointer types that are not clearly
related, it removes 'const' from casts and assigns 'int = (ptr - ptr)'.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/mit/xorg/lib/libxcb/xcb.mk

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/xcb.mk
diff -u src/external/mit/xorg/lib/libxcb/xcb.mk:1.5 src/external/mit/xorg/lib/libxcb/xcb.mk:1.6
--- src/external/mit/xorg/lib/libxcb/xcb.mk:1.5	Wed May 29 13:15:53 2019
+++ src/external/mit/xorg/lib/libxcb/xcb.mk	Thu Oct 31 08:18:20 2024
@@ -1,4 +1,4 @@
-#	$NetBSD: xcb.mk,v 1.5 2019/05/29 13:15:53 maya Exp $
+#	$NetBSD: xcb.mk,v 1.6 2024/10/31 08:18:20 rillig Exp $
 
 # define XCBEXT to something before including this
 
@@ -9,6 +9,10 @@ SRCS=	${XCBEXT}.c
 CPPFLAGS+=	-I${X11SRCDIR.xcb}/src
 CPPFLAGS+=	-I${.CURDIR}/../files
 
+LINTFLAGS+=	-X 132	# int = long (mostly for pointer differences)
+LINTFLAGS+=	-X 275	# cast discards 'const'
+LINTFLAGS+=	-X 247	# cast between unrelated pointer types
+
 LIBDPLIBS=\
 	xcb	${.CURDIR}/../libxcb \
 	Xau	${.CURDIR}/../../libXau \

Reply via email to