Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/mit/xorg/lib/dri.old dri.old: disable lint again



details:   https://anonhg.NetBSD.org/src/rev/1b4b9f9f6afe
branches:  trunk
changeset: 377242:1b4b9f9f6afe
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Jul 02 23:56:12 2023 +0000

description:
dri.old: disable lint again

diffstat:

 external/mit/xorg/lib/dri.old/Makefile |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 52d40cca4c46 -r 1b4b9f9f6afe external/mit/xorg/lib/dri.old/Makefile
--- a/external/mit/xorg/lib/dri.old/Makefile    Sun Jul 02 23:45:10 2023 +0000
+++ b/external/mit/xorg/lib/dri.old/Makefile    Sun Jul 02 23:56:12 2023 +0000
@@ -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.



Home | Main Index | Thread Index | Old Index