aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-12-23 12:44:37 -0200
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-12-23 12:44:37 -0200
commit7933c506c9d2a52fb38ffc5f09bf92c8eea7ca06 (patch)
treec2faec4887340f6c7c5db9c004981b378345bea7 /src
parentc85f23b2c4956ef90aa0785264232b8b62029692 (diff)
glib-helpers.h: cleanup a warning with clang 7
Two glib helper functions are redefined there, in order to avoid some warnings. Those produce a warning with clang 7: ./glib-helpers.h:32:9: warning: 'G_SOURCE_FUNC' macro redefined [-Wmacro-redefined] ^ /usr/include/glib-2.0/glib/gmain.h:191:9: note: previous definition is here ^ Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'src')
-rw-r--r--src/glib-helpers.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glib-helpers.h b/src/glib-helpers.h
index b3da8b0..3894b4c 100644
--- a/src/glib-helpers.h
+++ b/src/glib-helpers.h
@@ -28,6 +28,8 @@
G_BEGIN_DECLS
+#undef G_FUNC
+#undef G_SOURCE_FUNC
#define G_FUNC(func) ((GFunc)(func))
#define G_SOURCE_FUNC(func) ((GSourceFunc)(func))

Privacy Policy