[gnome-builder] util: remove single use of IDE_FALLBACK
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] util: remove single use of IDE_FALLBACK
- Date: Mon, 27 Nov 2017 00:04:36 +0000 (UTC)
commit 4de5bad19dbb5786b3628fb52e07baef4ef35405
Author: Christian Hergert <chergert redhat com>
Date: Sun Nov 26 16:04:16 2017 -0800
util: remove single use of IDE_FALLBACK
We didn't use this as much as anticipated, so we might as well remove the
only thing left from macros so we can drop the file.
src/libide/ide-macros.h | 9 +--------
.../flatpak/gbp-flatpak-configuration-provider.c | 4 +++-
2 files changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/src/libide/ide-macros.h b/src/libide/ide-macros.h
index ca59e5b..e194b69 100644
--- a/src/libide/ide-macros.h
+++ b/src/libide/ide-macros.h
@@ -18,15 +18,8 @@
#pragma once
-#include <glib-object.h>
-#include <string.h>
+#include <glib.h>
G_BEGIN_DECLS
-#if __GNUC__ >= 7
-# define IDE_FALLTHROUGH __attribute__((fallthrough))
-#else
-# define IDE_FALLTHROUGH
-#endif
-
G_END_DECLS
diff --git a/src/plugins/flatpak/gbp-flatpak-configuration-provider.c
b/src/plugins/flatpak/gbp-flatpak-configuration-provider.c
index d1a6fff..e01ab8f 100644
--- a/src/plugins/flatpak/gbp-flatpak-configuration-provider.c
+++ b/src/plugins/flatpak/gbp-flatpak-configuration-provider.c
@@ -751,7 +751,9 @@ gbp_flatpak_configuration_provider_manifest_changed (GbpFlatpakConfigurationProv
else
g_clear_pointer (&filename, g_free);
new_config_file = other_file;
- IDE_FALLTHROUGH;
+#if G_GNUC_CHECK_VERSION(7,0)
+ __attribute__((fallthrough));
+#endif
case G_FILE_MONITOR_EVENT_CREATED:
case G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT:
case G_FILE_MONITOR_EVENT_MOVED_IN:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]