[gnome-commander/ConvertWarningsToErrors] Ignore gcc warnings for missing-declarations for some some glib macro functions
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/ConvertWarningsToErrors] Ignore gcc warnings for missing-declarations for some some glib macro functions
- Date: Fri, 28 Apr 2017 21:11:18 +0000 (UTC)
commit bf4ed351378b58abeb5ef2b93e3771d0fc790411
Author: Uwe Scholz <uwescholz src gnome org>
Date: Fri Apr 28 23:09:18 2017 +0200
Ignore gcc warnings for missing-declarations for some some glib macro functions
src/dialogs/gnome-cmd-con-dialog.cc | 8 +++++++-
src/dialogs/gnome-cmd-key-shortcuts-dialog.cc | 8 +++++++-
2 files changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/src/dialogs/gnome-cmd-con-dialog.cc b/src/dialogs/gnome-cmd-con-dialog.cc
index f27136e..35179fa 100644
--- a/src/dialogs/gnome-cmd-con-dialog.cc
+++ b/src/dialogs/gnome-cmd-con-dialog.cc
@@ -342,8 +342,14 @@ gboolean GnomeCmdConnectDialog::verify_uri()
return TRUE;
}
-
+#if defined (__GNUC__)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wmissing-declarations"
+#endif
G_DEFINE_TYPE (GnomeCmdConnectDialog, gnome_cmd_connect_dialog, GTK_TYPE_DIALOG)
+#if defined (__GNUC__)
+#pragma GCC diagnostic pop
+#endif
static void gnome_cmd_connect_dialog_finalize (GObject *object)
diff --git a/src/dialogs/gnome-cmd-key-shortcuts-dialog.cc b/src/dialogs/gnome-cmd-key-shortcuts-dialog.cc
index ba36153..af5ee3b 100644
--- a/src/dialogs/gnome-cmd-key-shortcuts-dialog.cc
+++ b/src/dialogs/gnome-cmd-key-shortcuts-dialog.cc
@@ -69,8 +69,14 @@ inline GnomeCmdKeyShortcutsDialogPrivate::GnomeCmdKeyShortcutsDialogPrivate()
GnomeCmdUserActions *GnomeCmdKeyShortcutsDialog::user_actions = NULL;
+#if defined (__GNUC__)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wmissing-declarations"
+#endif
G_DEFINE_TYPE (GnomeCmdKeyShortcutsDialog, gnome_cmd_key_shortcuts_dialog, GTK_TYPE_DIALOG)
-
+#if defined (__GNUC__)
+#pragma GCC diagnostic pop
+#endif
static void gnome_cmd_key_shortcuts_dialog_finalize (GObject *object)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]