From c4f2b64c1f74f1bba7762f544cf3b6a703ac0211 Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Thu, 23 Feb 2012 22:06:14 +0100 Subject: [PATCH] maintcheck: remove an obsolete check * syntax-checks.mk (sc_perl_local_no_parens): Remove, we don't even allow the use of local but for the '$_' and '$~' special variables. (syntax_check_rules): Adjust. --- syntax-checks.mk | 8 -------- 1 file changed, 8 deletions(-) diff --git a/syntax-checks.mk b/syntax-checks.mk index 8df0f198a..7ec980aae 100644 --- a/syntax-checks.mk +++ b/syntax-checks.mk @@ -50,7 +50,6 @@ sc_perl_no_split_regex_space \ sc_cd_in_backquotes \ sc_cd_relative_dir \ sc_perl_at_uscore_in_scalar_context \ -sc_perl_local_no_parens \ sc_perl_local \ sc_AMDEP_TRUE_in_automake_in \ sc_tests_make_without_am_makeflags \ @@ -265,13 +264,6 @@ sc_perl_at_uscore_in_scalar_context: exit 1; \ fi -## Forbid using parens with 'local' to ease counting. -sc_perl_local_no_parens: - @if grep '^[ \t]*local *(' $(srcdir)/automake.in; then \ - echo "Don't use 'local' with parens: use several 'local' above." >&2; \ - exit 1; \ - fi - ## Allow only few variables to be localized in Automake. sc_perl_local: @if egrep -v '^[ \t]*local \$$[_~]( *=|;)' $(srcdir)/automake.in | \ -- 2.47.2