From a1e858526ff602053fb48cc455e2ce2fbbc2cc91 Mon Sep 17 00:00:00 2001 From: rillig Date: Sat, 25 Dec 2021 13:30:42 +0000 Subject: 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. --- external/ibm-public/postfix/Makefile.inc | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/external/ibm-public/postfix/Makefile.inc b/external/ibm-public/postfix/Makefile.inc index 1d615d6273a..f62beff5716 100644 --- a/external/ibm-public/postfix/Makefile.inc +++ b/external/ibm-public/postfix/Makefile.inc @@ -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 +# 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 -- cgit