Commit 11453720 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Add LIBVLC_MALLOC function attribute

when the return value is a *unique* pointer (or NULL)...
parent 802b97fd
......@@ -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
/*****************************************************************************
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment