diff options
author | Jim Meyering <meyering@redhat.com> | 2009-02-01 20:19:03 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-02-02 09:37:48 +0100 |
commit | 18810ae65f72b8b8a73c04dd2be92ff1a34969ad (patch) | |
tree | 953e5910ab4c12bc007ede7b88847c03263958a1 | |
parent | d3dcb10f902ac9f1636aefd38520c50b5fcdc1d5 (diff) | |
download | coreutils-18810ae65f72b8b8a73c04dd2be92ff1a34969ad.tar.xz |
* maint.mk (sc_redundant_const): Use $(_prohibit_regexp).
-rw-r--r-- | maint.mk | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -414,10 +414,9 @@ sc_proper_name_utf8_requires_ICONV: # Warn about "c0nst struct Foo const foo[]", # but not about "char const *const foo" or "#define const const". sc_redundant_const: - @grep -E '\bconst\b[[:space:][:alnum:]]{2,}\bconst\b' \ - $$($(VC_LIST_EXCEPT)) && \ - { echo 1>&2 '$(ME): redundant "const" in declarations'; \ - exit 1; } || : + @re='\bconst\b[[:space:][:alnum:]]{2,}\bconst\b' \ + msg='redundant "const" in declarations' \ + $(_prohibit_regexp) sc_const_long_option: @grep '^ *static.*struct option ' $$($(VC_LIST_EXCEPT)) \ |