diff options
Diffstat (limited to 'Makefile.maint')
-rw-r--r-- | Makefile.maint | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile.maint b/Makefile.maint index ba5166b3d..bb666a4ad 100644 --- a/Makefile.maint +++ b/Makefile.maint @@ -179,6 +179,18 @@ sc_prohibit_quotearg_without_use: else :; \ fi +# Don't include quote.h unless you use one of its functions. +sc_prohibit_quote_without_use: + @if $(CVS_LIST_EXCEPT) | grep '\.c$$' > /dev/null; then \ + files=$$(grep -l '# *include "quote\.h"' \ + $$($(CVS_LIST_EXCEPT) | grep '\.c$$')) && \ + grep -LE '\<quote(_n)? \(' $$files \ + | grep . && \ + { echo "$(ME): the above files include "quote.h" but don't use it" \ + 1>&2; exit 1; } || :; \ + else :; \ + fi + sc_obsolete_symbols: @grep -nE '\<(HAVE''_FCNTL_H|O''_NDELAY)\>' \ $$($(CVS_LIST_EXCEPT)) && \ |