Module Name:    src
Committed By:   rillig
Date:           Sat Dec 25 13:30:42 UTC 2021

Modified Files:
        src/external/ibm-public/postfix: Makefile.inc

Log Message:
postfix: enable lint again

Since init.c 1.229 from 2021-12-22, lint correctly parses and interprets
initializers with omitted braces, which are allowed by the C standards
but not recommended.

The warnings about empty declarations at file scope are suppressed
precisely.

Lint2 handles the generated .ln files fine in my local builds, I suspect
some truncated files as the cause for the unspecific "is broken" from
the comment.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/external/ibm-public/postfix/Makefile.inc

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

Modified files:

Index: src/external/ibm-public/postfix/Makefile.inc
diff -u src/external/ibm-public/postfix/Makefile.inc:1.30 src/external/ibm-public/postfix/Makefile.inc:1.31
--- src/external/ibm-public/postfix/Makefile.inc:1.30	Tue Dec 14 16:27:20 2021
+++ src/external/ibm-public/postfix/Makefile.inc	Sat Dec 25 13:30:42 2021
@@ -1,15 +1,12 @@
-#	$NetBSD: Makefile.inc,v 1.30 2021/12/14 16:27:20 christos Exp $
-
-# For now, don't lint:
-# 1. postfix uses 'struct { const char *name; int value } foo[] =
-#    { "n1", v1, "n2, v2", 0 };' and this is broken (should be fixed in lint)
-# 2. uses macros with extra ; (macros should be fixed)
-# 3. lint2 is broken (should be fixed in lint2)
-# 4. use use MKLINT:=no since this might have been included too late.
-MKLINT:=no
+#	$NetBSD: Makefile.inc,v 1.31 2021/12/25 13:30:42 rillig Exp $
 
 .include <bsd.own.mk>
 
+# dist/src/util/attr.h(90)
+# dist/src/util/vstream.h(181)
+# dist/src/util/vstring.h(63)
+LINTFLAGS+=	-X 0		# empty declaration
+
 USE_FORT?= yes	# network client and server
 CWARNFLAGS.clang+=	-Wno-empty-body -Wno-format-extra-args \
 			-Wno-string-plus-int -Wno-string-compare

Reply via email to