diff top/maint.mk @ 15989:30a6c0b6ac8c

maint.mk: exempt ENODATA from a syntax-check rule * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA from the sc_prohibit_always-defined_macros syntax-check rule. Add a comment. See this for more details: http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
author Jim Meyering <meyering@redhat.com>
date Tue, 25 Oct 2011 12:26:49 +0200
parents 427ccc55d08a
children 2f6844abf7fd
line wrap: on
line diff
--- a/top/maint.mk	Sun Oct 23 22:42:25 2011 +0200
+++ b/top/maint.mk	Tue Oct 25 12:26:49 2011 +0200
@@ -749,10 +749,12 @@
 
 # Perl -lne code to extract "significant" cpp-defined symbols from a
 # gnulib header file, eliminating a few common false-positives.
+# The exempted names below are defined only conditionally in gnulib,
+# and hence sometimes must/may be defined in application code.
 gl_extract_significant_defines_ = \
   /^\# *define ([^_ (][^ (]*)(\s*\(|\s+\w+)/\
     && $$2 !~ /(?:rpl_|_used_without_)/\
-    && $$1 !~ /^(?:NSIG)$$/\
+    && $$1 !~ /^(?:NSIG|ENODATA)$$/\
     && $$1 !~ /^(?:SA_RESETHAND|SA_RESTART)$$/\
     and print $$1