From fabe8a68103e1014e4ad4551046bbd8ad8c5ae3c Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Fri, 13 Jul 2012 14:02:05 -0600 Subject: maint.mk: new syntax check for HAVE_DECL checks Based on Karel's report, we might as well enforce a syntax check to help avoid future problems. https://lists.gnu.org/archive/html/coreutils/2012-06/msg00037.html Exempt a few files that still get picked up in the wild rather than as a full gnulib module with m4 files. * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule. * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests): Exempt some false positives. Based on a report by Karel Zak. Signed-off-by: Eric Blake --- cfg.mk | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cfg.mk') diff --git a/cfg.mk b/cfg.mk index 45a321cef3..bf59024474 100644 --- a/cfg.mk +++ b/cfg.mk @@ -77,3 +77,6 @@ if_before_free_basename_re_ = \ exclude_file_name_regexp--sc_avoid_if_before_free = \ ^lib/($(if_before_free_basename_re_))\.c$$ + +exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests = \ + ^lib/((error|getopt|strtoimax)\.c|(argp-namefrob|fpending|getpass)\.h)$$ -- cgit v1.2.1