mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-28 23:09:59 +02:00
Add LIBVLC_MALLOC function attribute
when the return value is a *unique* pointer (or NULL)...
This commit is contained in:
parent
802b97fd3f
commit
11453720e5
@ -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
|
||||
|
||||
/*****************************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user