summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/gio
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-13 18:13:58 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-13 18:16:30 +0100
commit8313f68355a7f1f51e930c74f215d823ff086457 (patch)
tree7e652866701e833d14e745b10be66b59dfd5c11f /ucb/source/ucp/gio
parent21470348109ab7b91d2147535d72728736c5b43d (diff)
Work around G_DEFINE_TYPE -Werror,-Wunused-function
At least G_DEFINE_TYPE from glib2-devel-2.38.2-2.fc20.x86_64 /usr/include/glib-2.0/gobject/gtype.h defines unsed *_get_instance_private functions. Change-Id: I47211b6451d9699c7b8741555f3ad11a09e411bf
Diffstat (limited to 'ucb/source/ucp/gio')
-rw-r--r--ucb/source/ucp/gio/gio_mount.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/ucb/source/ucp/gio/gio_mount.cxx b/ucb/source/ucp/gio/gio_mount.cxx
index 30c97e29795f..6d7bc63a45e9 100644
--- a/ucb/source/ucp/gio/gio_mount.cxx
+++ b/ucb/source/ucp/gio/gio_mount.cxx
@@ -22,7 +22,14 @@
#include <stdio.h>
#include <string.h>
+#if HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE && HAVE_GCC_PRAGMA_DIAGNOSTIC_MODIFY
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunused-function"
+#endif
G_DEFINE_TYPE (OOoMountOperation, ooo_mount_operation, G_TYPE_MOUNT_OPERATION);
+#if HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE && HAVE_GCC_PRAGMA_DIAGNOSTIC_MODIFY
+#pragma GCC diagnostic pop
+#endif
static void ooo_mount_operation_ask_password (GMountOperation *op,
const char *message, const char *default_user, const char *default_domain,