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 928d846..c382d58 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 f9eed6a..ed8d367 100644 (file)
@@ -334,6 +334,11 @@ sc_prohibit_inttostr_without_use:
          $(_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"' \
        re='\<error(_at_line|_print_progname|_one_per_line|_message_count)? *\('\