mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
(sc_src_functions_have_static_scope): New rule.
(syntax-check-rules): Add it.
This commit is contained in:
1 parent
c09c476689
commit
350228c3be
1 file changed
+4
@@ -75,6 +75,7 @@ syntax-check-rules = \
|
||||
sc_prohibit_atoi_atof \
|
||||
sc_prohibit_jm_in_m4 \
|
||||
sc_space_tab \
|
||||
sc_src_functions_have_static_scope \
|
||||
sc_sun_os_names \
|
||||
sc_system_h_headers \
|
||||
sc_trailing_blank \
|
||||
@@ -92,6 +93,9 @@ syntax-check: $(syntax-check-rules)
|
||||
# exit 1; } || :
|
||||
# FIXME: don't allow `#include .strings\.h' anywhere
|
||||
|
||||
sc_src_functions_have_static_scope:
|
||||
$(MAKE) -C src $@
|
||||
|
||||
sc_cast_of_argument_to_free:
|
||||
@grep -E '\<free \(\(' $(srcdir)/{lib,src}/*.[chly] && \
|
||||
{ echo '$(ME): don'\''t cast free argument' 1>&2; \
|
||||
|
||||
Reference in new issue
Block a user