Add LIBVLC_MALLOC function attribute

when the return value is a *unique* pointer (or NULL)...
This commit is contained in:
Rémi Denis-Courmont 2009-09-24 20:46:40 +03:00
parent 802b97fd3f
commit 11453720e5
1 changed files with 2 additions and 0 deletions

View File

@ -60,9 +60,11 @@
#ifdef __GNUC__
# define LIBVLC_FORMAT(x,y) __attribute__ ((format(printf,x,y)))
# define LIBVLC_USED __attribute__ ((warn_unused_result))
# define LIBVLC_MALLOC __attribute__ ((malloc))
#else
# define LIBVLC_FORMAT(x,y)
# define LIBVLC_USED
# define LIBVLC_MALLOC
#endif
/*****************************************************************************