From 36e3485e7f39ffb3e0ec2b5ca0ffd71275721e3e Mon Sep 17 00:00:00 2001 From: Assaf Gordon Date: Mon, 6 Aug 2018 15:34:02 -0600 Subject: [PATCH] sed: mark function as attribute(malloc) Suggested by gcc-8.2.0. * sed/compile.c (read_label): Mark as _GL_ATTRIBUTE_MALLOC. --- sed/compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sed/compile.c b/sed/compile.c index 5e2032d..936fd28 100644 --- a/sed/compile.c +++ b/sed/compile.c @@ -673,7 +673,7 @@ mark_subst_opts (struct subst *cmd) } /* read in a label for a `:', `b', or `t' command */ -static char * +static char * _GL_ATTRIBUTE_MALLOC read_label (void) { struct buffer *b;