Mercurial > hg > octave-lojdl > gnulib-hg
changeset 12035:2898ee238452
syntax-check: detect unnecessary inclusion of canonicalize.h
* top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Sat, 19 Sep 2009 19:51:05 +0200 |
parents | 3a36df817115 |
children | 1762604ec0a7 |
files | ChangeLog top/maint.mk |
diffstat | 2 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-09-19 Jim Meyering <meyering@redhat.com> + + syntax-check: detect unnecessary inclusion of canonicalize.h + * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule. + 2009-09-19 Eric Blake <ebb9@byu.net> canonicalize-lgpl: adjust clients to use correct header
--- a/top/maint.mk +++ b/top/maint.mk @@ -288,6 +288,11 @@ re='(\<(ARRAY_CARDINALITY|X?ARGMATCH(|_TO_ARGUMENT|_VERIFY))\>|\<argmatch(_exit_fn|_(in)?valid) *\()' \ $(_header_without_use) +sc_prohibit_canonicalize_without_use: + @h='"canonicalize.h"' \ + re='CAN_(EXISTING|ALL_BUT_LAST|MISSING)|canonicalize_(mode_t|filename_mode)' \ + $(_header_without_use) + sc_prohibit_root_dev_ino_without_use: @h='"root-dev-ino.h"' \ re='(\<ROOT_DEV_INO_(CHECK|WARN)\>|\<get_root_dev_ino *\()' \