From: Bartosz Golaszewski Date: Tue, 24 Oct 2017 07:28:10 +0000 (+0200) Subject: tests: remove the MALLOC attribute from xappend() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=030f17e6572d4277c05d2eefffa091cd69ab43cb;p=qemu-gpiodev%2Flibgpiod.git tests: remove the MALLOC attribute from xappend() The internally called realloc() doesn't have this attribute so we can't propagate it up the stack. Signed-off-by: Bartosz Golaszewski --- diff --git a/tests/gpiod-test.c b/tests/gpiod-test.c index 4b26455..dcf3728 100644 --- a/tests/gpiod-test.c +++ b/tests/gpiod-test.c @@ -257,7 +257,7 @@ static MALLOC char * xstrdup(const char *str) return ret; } -static MALLOC TEST_PRINTF(2, 3) char * xappend(char *str, const char *fmt, ...) +static TEST_PRINTF(2, 3) char * xappend(char *str, const char *fmt, ...) { char *new, *ret; va_list va;