alloc_number_set_array: add ATTRIBUTE_MALLOC

* number_set.h: Include "gcc_compat.h".
(alloc_number_set_array): Add ATTRIBUTE_MALLOC.
This commit is contained in:
Дмитрий Левин 2017-08-24 18:13:29 +00:00
parent ff8e066b3c
commit 1998f2666a

View File

@ -28,6 +28,8 @@
#ifndef STRACE_NUMBER_SET_H #ifndef STRACE_NUMBER_SET_H
#define STRACE_NUMBER_SET_H #define STRACE_NUMBER_SET_H
#include "gcc_compat.h"
struct number_set; struct number_set;
extern bool extern bool
@ -52,7 +54,7 @@ extern void
invert_number_set_array(struct number_set *, unsigned int nmemb); invert_number_set_array(struct number_set *, unsigned int nmemb);
extern struct number_set * extern struct number_set *
alloc_number_set_array(unsigned int nmemb); alloc_number_set_array(unsigned int nmemb) ATTRIBUTE_MALLOC;
extern void extern void
free_number_set_array(struct number_set *, unsigned int nmemb); free_number_set_array(struct number_set *, unsigned int nmemb);