From 1998f2666aea43730ffbaadbbbccef91a1889928 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Thu, 24 Aug 2017 18:13:29 +0000 Subject: [PATCH] alloc_number_set_array: add ATTRIBUTE_MALLOC * number_set.h: Include "gcc_compat.h". (alloc_number_set_array): Add ATTRIBUTE_MALLOC. --- number_set.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/number_set.h b/number_set.h index 967a1c88..ec53bc1b 100644 --- a/number_set.h +++ b/number_set.h @@ -28,6 +28,8 @@ #ifndef STRACE_NUMBER_SET_H #define STRACE_NUMBER_SET_H +#include "gcc_compat.h" + struct number_set; extern bool @@ -52,7 +54,7 @@ extern void invert_number_set_array(struct number_set *, unsigned int nmemb); extern struct number_set * -alloc_number_set_array(unsigned int nmemb); +alloc_number_set_array(unsigned int nmemb) ATTRIBUTE_MALLOC; extern void free_number_set_array(struct number_set *, unsigned int nmemb);