Source-Changes-HG archive

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

[src/trunk]: src/external/ibm-public/postfix postfix: enable lint again



details:   https://anonhg.NetBSD.org/src/rev/06796d90ad83
branches:  trunk
changeset: 1029182:06796d90ad83
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Dec 25 13:30:42 2021 +0000

description:
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.

diffstat:

 external/ibm-public/postfix/Makefile.inc |  15 ++++++---------
 1 files changed, 6 insertions(+), 9 deletions(-)

diffs (25 lines):

diff -r cbccbdb57393 -r 06796d90ad83 external/ibm-public/postfix/Makefile.inc
--- a/external/ibm-public/postfix/Makefile.inc  Fri Dec 24 22:56:55 2021 +0000
+++ b/external/ibm-public/postfix/Makefile.inc  Sat Dec 25 13:30:42 2021 +0000
@@ -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



Home | Main Index | Thread Index | Old Index