Skip to content

Commit

Permalink
[ofono] Ignore known deprecation warnings
Browse files Browse the repository at this point in the history
Apparently, the only way to get rid of "warning: G_ADD_PRIVATE" is to
completely disable all Glib deprecation warnings in the entire file.
G_GNUC_BEGIN/END_IGNORE_DEPRECATIONS macros don't help :/
  • Loading branch information
monich committed Feb 12, 2020
1 parent 45424a3 commit 6d1ab13
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 6 deletions.
2 changes: 2 additions & 0 deletions ofono/drivers/ril/ril_data.c
Expand Up @@ -14,6 +14,8 @@
* GNU General Public License for more details.
*/

#define GLIB_DISABLE_DEPRECATION_WARNINGS

#include "ril_data.h"
#include "ril_radio.h"
#include "ril_network.h"
Expand Down
4 changes: 3 additions & 1 deletion ofono/drivers/ril/ril_ecclist.c
@@ -1,7 +1,7 @@
/*
* oFono - Open Source Telephony - RIL-based devices
*
* Copyright (C) 2016-2019 Jolla Ltd.
* Copyright (C) 2016-2020 Jolla Ltd.
* Copyright (C) 2019 Open Mobile Platform LLC.
*
* This program is free software; you can redistribute it and/or modify
Expand All @@ -14,6 +14,8 @@
* GNU General Public License for more details.
*/

#define GLIB_DISABLE_DEPRECATION_WARNINGS

#include "ril_ecclist.h"
#include "ril_log.h"

Expand Down
4 changes: 3 additions & 1 deletion ofono/drivers/ril/ril_network.c
@@ -1,7 +1,7 @@
/*
* oFono - Open Source Telephony - RIL-based devices
*
* Copyright (C) 2015-2019 Jolla Ltd.
* Copyright (C) 2015-2020 Jolla Ltd.
* Copyright (C) 2019 Open Mobile Platform LLC.
*
* This program is free software; you can redistribute it and/or modify
Expand All @@ -14,6 +14,8 @@
* GNU General Public License for more details.
*/

#define GLIB_DISABLE_DEPRECATION_WARNINGS

#include "ril_network.h"
#include "ril_radio.h"
#include "ril_sim_card.h"
Expand Down
4 changes: 3 additions & 1 deletion ofono/drivers/ril/ril_radio.c
@@ -1,7 +1,7 @@
/*
* oFono - Open Source Telephony - RIL-based devices
*
* Copyright (C) 2015-2019 Jolla Ltd.
* Copyright (C) 2015-2020 Jolla Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
Expand All @@ -13,6 +13,8 @@
* GNU General Public License for more details.
*/

#define GLIB_DISABLE_DEPRECATION_WARNINGS

#include "ril_radio.h"
#include "ril_util.h"
#include "ril_log.h"
Expand Down
4 changes: 3 additions & 1 deletion ofono/drivers/ril/ril_sim_card.c
@@ -1,7 +1,7 @@
/*
* oFono - Open Source Telephony - RIL-based devices
*
* Copyright (C) 2015-2018 Jolla Ltd.
* Copyright (C) 2015-2020 Jolla Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
Expand All @@ -13,6 +13,8 @@
* GNU General Public License for more details.
*/

#define GLIB_DISABLE_DEPRECATION_WARNINGS

#include "ril_sim_card.h"
#include "ril_radio.h"
#include "ril_util.h"
Expand Down
4 changes: 3 additions & 1 deletion ofono/drivers/ril/ril_sim_settings.c
@@ -1,7 +1,7 @@
/*
* oFono - Open Source Telephony - RIL-based devices
*
* Copyright (C) 2016-2019 Jolla Ltd.
* Copyright (C) 2016-2020 Jolla Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
Expand All @@ -13,6 +13,8 @@
* GNU General Public License for more details.
*/

#define GLIB_DISABLE_DEPRECATION_WARNINGS

#include "ril_sim_settings.h"
#include "ril_log.h"

Expand Down
4 changes: 3 additions & 1 deletion ofono/plugins/sailfish_manager/sailfish_sim_info.c
@@ -1,7 +1,7 @@
/*
* oFono - Open Source Telephony
*
* Copyright (C) 2017-2019 Jolla Ltd.
* Copyright (C) 2017-2020 Jolla Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
Expand All @@ -13,6 +13,8 @@
* GNU General Public License for more details.
*/

#define GLIB_DISABLE_DEPRECATION_WARNINGS

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
Expand Down

0 comments on commit 6d1ab13

Please sign in to comment.