From c0db07f7f922bcfd85819486fecbb06e735a0165 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 28 Sep 2003 08:25:24 +0000 Subject: [PATCH] (sc_cast_of_x_alloc_return_value): Also check for alloca casts. --- Makefile.maint | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.maint b/Makefile.maint index 9043849697..a814aec64f 100644 --- a/Makefile.maint +++ b/Makefile.maint @@ -107,7 +107,8 @@ sc_cast_of_argument_to_free: sc_cast_of_x_alloc_return_value: @grep -E --exclude=$(srcdir)/lib/regex.c \ - '\*\) *x(m|c|re)alloc\>' $(srcdir)/{lib,src}/*.[chy] && \ + '\*\) *(alloca|x(m|c|re)alloc)\>' \ + $(srcdir)/{lib,src}/*.[chy] && \ { echo '$(ME): don'\''t cast x*alloc return value' 1>&2; \ exit 1; } || : -- 2.47.2