openbsd-ports/devel/glib2/patches/patch-glib_gmacros_h
ajacoutot 52866d0dcb Rework the mount/unmount functions.
Remove useless patches while here.
2011-06-28 09:40:13 +00:00

18 lines
657 B
Plaintext

$OpenBSD: patch-glib_gmacros_h,v 1.14 2011/06/28 09:40:13 ajacoutot Exp $
--- glib/gmacros.h.orig Mon Jun 6 01:18:49 2011
+++ glib/gmacros.h Mon Jun 27 15:46:33 2011
@@ -86,8 +86,13 @@
__attribute__((__noreturn__))
#define G_GNUC_CONST \
__attribute__((__const__))
+/* __attribute__((unused)) works with gcc3.3 but not g++3.3 */
+#if __GNUC__ == 3 && __GNUC_MINOR__ == 3 && !defined(__cplusplus)
#define G_GNUC_UNUSED \
__attribute__((__unused__))
+#else
+#define G_GNUC_UNUSED
+#endif
#define G_GNUC_NO_INSTRUMENT \
__attribute__((__no_instrument_function__))
#else /* !__GNUC__ */