X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_common.h;h=7e16c13d6978d3292c5f54429741aaeef04f1e63;hb=12ade3e3bc975d5426ba4af155b7372c31093b31;hp=68db9252301d26787406cf28ff5615bfff328859;hpb=04ad4fc735a909c6e3f100c90bcc5efc4a2bf0c1;p=vlc diff --git a/include/vlc_common.h b/include/vlc_common.h index 68db925230..7e16c13d69 100644 --- a/include/vlc_common.h +++ b/include/vlc_common.h @@ -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)