Commit fedd27d4 authored by Brad Smith's avatar Brad Smith Committed by Jean-Baptiste Kempf

Only define LIBVLC_USED for GCC 3.4 or newer. GCC 3.3 does not support the...

Only define LIBVLC_USED for GCC 3.4 or newer. GCC 3.3 does not support the warn_unused_result attribute.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 09a2365da0672be3e8401f6fcafd765b281db3ad)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent e07cdf2f
......@@ -80,7 +80,11 @@
# define LIBVLC_FORMAT(x,y) __attribute__ ((format(printf,x,y)))
# endif
# define LIBVLC_FORMAT_ARG(x) __attribute__ ((format_arg(x)))
# define LIBVLC_USED __attribute__ ((warn_unused_result))
# if __GNUC__ > 3 || (__GNUC__ == 3 && (__GNUC_MINOR__ >= 4))
# define LIBVLC_USED __attribute__ ((warn_unused_result))
# else
# define LIBVLC_USED
# endif
# define LIBVLC_MALLOC __attribute__ ((malloc))
#else
# define LIBVLC_FORMAT(x,y)
......
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