[gnome-builder] G_GNUC_USED: move this macro before for variables
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] G_GNUC_USED: move this macro before for variables
- Date: Sun, 19 Feb 2017 21:47:28 +0000 (UTC)
commit 260d4eb757161265d14fe0ffd65310300bc46049
Author: Sebastien Lafargue <slafargue gnome org>
Date: Sun Feb 19 22:46:15 2017 +0100
G_GNUC_USED: move this macro before for variables
For variables, this macro need to be before
the variable to work.
libide/buildsystem/ide-build-stage-launcher.c | 2 +-
plugins/xml-pack/ide-xml-tree-builder-generic.c | 2 +-
plugins/xml-pack/ide-xml-tree-builder-ui.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libide/buildsystem/ide-build-stage-launcher.c b/libide/buildsystem/ide-build-stage-launcher.c
index b5aba20..40c2ec5 100644
--- a/libide/buildsystem/ide-build-stage-launcher.c
+++ b/libide/buildsystem/ide-build-stage-launcher.c
@@ -113,7 +113,7 @@ ide_build_stage_launcher_run (IdeBuildStage *stage,
gpointer user_data)
{
IdeBuildStageLauncher *self = (IdeBuildStageLauncher *)stage;
- IdeBuildStageLauncherPrivate *priv = ide_build_stage_launcher_get_instance_private (self); G_GNUC_UNUSED
+ G_GNUC_UNUSED IdeBuildStageLauncherPrivate *priv = ide_build_stage_launcher_get_instance_private (self);
g_autoptr(GTask) task = NULL;
g_autoptr(GError) error = NULL;
g_autoptr(IdeSubprocess) subprocess = NULL;
diff --git a/plugins/xml-pack/ide-xml-tree-builder-generic.c b/plugins/xml-pack/ide-xml-tree-builder-generic.c
index 98c291c..cc67e32 100644
--- a/plugins/xml-pack/ide-xml-tree-builder-generic.c
+++ b/plugins/xml-pack/ide-xml-tree-builder-generic.c
@@ -63,7 +63,7 @@ state_processing (ParserState *state,
gboolean is_internal)
{
IdeXmlSymbolNode *parent_node;
- IdeXmlSymbolNode *popped_node G_GNUC_UNUSED;
+ G_GNUC_UNUSED IdeXmlSymbolNode *popped_node;
g_autofree gchar *popped_element_name = NULL;
gint line;
gint line_offset;
diff --git a/plugins/xml-pack/ide-xml-tree-builder-ui.c b/plugins/xml-pack/ide-xml-tree-builder-ui.c
index 8158a0f..90665a0 100644
--- a/plugins/xml-pack/ide-xml-tree-builder-ui.c
+++ b/plugins/xml-pack/ide-xml-tree-builder-ui.c
@@ -63,7 +63,7 @@ state_processing (ParserState *state,
gboolean is_internal)
{
IdeXmlSymbolNode *parent_node;
- IdeXmlSymbolNode *popped_node G_GNUC_UNUSED;
+ G_GNUC_UNUSED IdeXmlSymbolNode *popped_node;
g_autofree gchar *popped_element_name = NULL;
gint line;
gint line_offset;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]