maint.mk: prohibit inclusion of "verify.h" without use
authorJim Meyering <meyering@redhat.com>
Tue, 12 Jul 2011 16:55:44 +0000 (18:55 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 21 Jul 2011 20:26:04 +0000 (22:26 +0200)
* top/maint.mk (sc_prohibit_verify_without_use): New rule.

ChangeLog
top/maint.mk

index 9fa4f50..91abaf5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-07-12  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: prohibit inclusion of "verify.h" without use
+       * top/maint.mk (sc_prohibit_verify_without_use): New rule.
+
 2011-07-19  Pádraig Brady  <P@draigBrady.com>
 
        timer-time: A new module to check for timer_settime()
index 2da93bf..9357728 100644 (file)
@@ -621,6 +621,12 @@ sc_prohibit_stddef_without_use:
        re='\<($(_stddef_syms_re)) *\('                                 \
          $(_sc_header_without_use)
 
+# Prohibit the inclusion of verify.h without an actual use.
+sc_prohibit_verify_without_use:
+       @h='verify.h'                                                   \
+       re='\<(verify(true|expr)?|static_assert) *\('                   \
+         $(_sc_header_without_use)
+
 # Don't include xfreopen.h unless you use one of its functions.
 sc_prohibit_xfreopen_without_use:
        @h='xfreopen.h' re='\<xfreopen *\(' $(_sc_header_without_use)