# include <stdbool.h>
#endif
+/* Format string sanity checks */
+#ifdef __GNUC__
+# define LIBVLC_FORMAT(x,y) __attribute__ ((format(printf,x,y)))
+# define LIBVLC_USED __attribute__ ((warn_unused_result))
+#else
+# define LIBVLC_FORMAT(x,y)
+# define LIBVLC_USED
+#endif
+
/*****************************************************************************
* Basic types definitions
*****************************************************************************/
}
#define hton64(i) ntoh64(i)
-/* Format string sanity checks */
-#ifdef __GNUC__
-# define LIBVLC_FORMAT(x,y) __attribute__ ((format(printf,x,y)))
-#else
-# define LIBVLC_FORMAT(x,y)
-#endif
-
/* */
#define VLC_UNUSED(x) (void)(x)