Module Name:    src
Committed By:   rillig
Date:           Sun Jul  2 23:56:12 UTC 2023

Modified Files:
        src/external/mit/xorg/lib/dri.old: Makefile

Log Message:
dri.old: disable lint again


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/mit/xorg/lib/dri.old/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/dri.old/Makefile
diff -u src/external/mit/xorg/lib/dri.old/Makefile:1.5 src/external/mit/xorg/lib/dri.old/Makefile:1.6
--- src/external/mit/xorg/lib/dri.old/Makefile:1.5	Sat Jul  1 15:16:46 2023
+++ src/external/mit/xorg/lib/dri.old/Makefile	Sun Jul  2 23:56:12 2023
@@ -1,7 +1,15 @@
-# $NetBSD: Makefile,v 1.5 2023/07/01 15:16:46 rillig Exp $
+# $NetBSD: Makefile,v 1.6 2023/07/02 23:56:12 rillig Exp $
 
 # Link the mesa_dri_drivers mega driver.
 
+# Uses 'assert(cond)' in a comma expression, leading to a syntax error because
+# in lint mode, 'assert(cond)' expands to an empty string, and '(, expr)' is
+# not an expression.
+NOLINT=
+
+LINTFLAGS+=	-X 213		# void function '%s' cannot return value
+LINTFLAGS+=	-Ac23		# allow C23, for empty initializer braces
+
 # When build_id.c expands the macro invocation 'ElfW(Nhdr)', the result is
 # 'Elf64 /* MD native binary size */ _Nhdr'. The comment prevents the two
 # identifiers from being concatenated.

Reply via email to