maint.mk: prohibit inclusion of "ignore-value.h" without_use
authorJim Meyering <meyering@redhat.com>
Wed, 10 Feb 2010 11:31:55 +0000 (12:31 +0100)
committerJim Meyering <meyering@redhat.com>
Wed, 10 Feb 2010 11:31:55 +0000 (12:31 +0100)
* top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.

ChangeLog
top/maint.mk

index 928d8466b981885d64cf31d4aa86c72798f689ac..c382d58fd1ad06a9b3e967643d3f354c1c6fb467 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-02-10  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: prohibit inclusion of "ignore-value.h" without_use
+       * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
+
 2010-02-09  Eric Blake  <ebb9@byu.net>
        and Bruno Haible  <bruno@clisp.org>
 
index f9eed6aa555154f797d17dd65da31515ec132fcb..ed8d3678067878cfaf8b692c152a54a9e3c49777 100644 (file)
@@ -333,6 +333,11 @@ sc_prohibit_inttostr_without_use:
        @h='"inttostr.h"' re='\<(off|[iu]max|uint)tostr *\(' \
          $(_header_without_use)
 
+# Don't include this header unless you use one of its functions.
+sc_prohibit_ignore_value_without_use:
+       @h='"ignore-value.h"' re='\<ignore_(value|ptr) *\(' \
+         $(_header_without_use)
+
 # Don't include this header unless you use one of its functions.
 sc_prohibit_error_without_use:
        @h='"error.h"' \