From 11453720e5593efb90e8261228ff5a8492013fef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= Date: Thu, 24 Sep 2009 20:46:40 +0300 Subject: [PATCH] Add LIBVLC_MALLOC function attribute when the return value is a *unique* pointer (or NULL)... --- include/vlc_common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/vlc_common.h b/include/vlc_common.h index 87a0610955..2244cdbbf0 100644 --- a/include/vlc_common.h +++ b/include/vlc_common.h @@ -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 /*****************************************************************************