]> git.sesse.net Git - vlc/commitdiff
Only define LIBVLC_USED for GCC 3.4 or newer. GCC 3.3 does not support the warn_unuse...
authorBrad Smith <brad@comstyle.com>
Wed, 11 Aug 2010 23:24:49 +0000 (19:24 -0400)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 12 Aug 2010 09:55:08 +0000 (11:55 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
include/vlc_common.h

index 68db9252301d26787406cf28ff5615bfff328859..7e16c13d6978d3292c5f54429741aaeef04f1e63 100644 (file)
 #     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)