[polari] lib: Guard against deprecated symbols in telepathy-glib
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] lib: Guard against deprecated symbols in telepathy-glib
- Date: Wed, 14 Aug 2019 18:10:52 +0000 (UTC)
commit e9c1e85d59c315e473d8b854f1aa6fd622719c7f
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Aug 14 19:53:12 2019 +0200
lib: Guard against deprecated symbols in telepathy-glib
Recent Glib deprecated symbols that are used in the telepathy-glib
API. There is no point in compiler warnings for unfixable problems,
so disable them for the includes.
https://gitlab.gnome.org/GNOME/polari/merge_requests/131
src/lib/polari-client-factory.h | 4 ++++
src/lib/polari-room.h | 2 ++
2 files changed, 6 insertions(+)
---
diff --git a/src/lib/polari-client-factory.h b/src/lib/polari-client-factory.h
index dbf771d..18c8cf3 100644
--- a/src/lib/polari-client-factory.h
+++ b/src/lib/polari-client-factory.h
@@ -17,7 +17,11 @@
*/
#pragma once
+#include <glib-object.h>
+
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
#include <telepathy-glib/telepathy-glib.h>
+G_GNUC_END_IGNORE_DEPRECATIONS
#include "polari-tp-autocleanup.h"
G_BEGIN_DECLS
diff --git a/src/lib/polari-room.h b/src/lib/polari-room.h
index b48d654..ce74ed0 100644
--- a/src/lib/polari-room.h
+++ b/src/lib/polari-room.h
@@ -20,7 +20,9 @@
#include <glib-object.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
#include <telepathy-glib/telepathy-glib.h>
+G_GNUC_END_IGNORE_DEPRECATIONS
G_BEGIN_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]