[calls/bump-glib: 2/3] meson: Disable deprecation warning for e-d-s
- From: Evangelos Ribeiro Tzaras <devrtz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [calls/bump-glib: 2/3] meson: Disable deprecation warning for e-d-s
- Date: Fri, 16 Jul 2021 12:16:31 +0000 (UTC)
commit 1d22c14e74f3781a009183b54621b3940eabadc9
Author: Evangelos Ribeiro Tzaras <evangelos tzaras puri sm>
Date: Tue Jun 22 07:35:20 2021 +0200
meson: Disable deprecation warning for e-d-s
After bumping minimum glib requirements we get a bunch of
```
In file included from /usr/include/evolution-data-server/libedataserver/libedataserver.h:32,
from /usr/include/evolution-data-server/libebook-contacts/libebook-contacts.h:23,
from ../src/service.c:48:
/usr/include/evolution-data-server/libedataserver/e-flag.h:54:8: warning: 'GTimeVal' is deprecated: Use
'GDateTime' instead [-Wdeprecated-declarations]
54 | GTimeVal *abs_time);
| ^~~~~~~~
In file included from /usr/include/glib-2.0/glib/galloca.h:32,
from /usr/include/glib-2.0/glib.h:30,
from ../src/service.c:36:
/usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here
547 | struct _GTimeVal
| ^~~~~~~~~
```
Upstream recommends avoiding the warnings by defining `EDS_DISABLE_DEPRECATED`,
see https://gitlab.gnome.org/GNOME/evolution-data-server/-/issues/332.
meson.build | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/meson.build b/meson.build
index 7f2144c0..657df0d1 100644
--- a/meson.build
+++ b/meson.build
@@ -99,6 +99,8 @@ test_c_args = [
'-Wunused-function',
'-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_64',
'-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_68',
+ # see https://gitlab.gnome.org/GNOME/evolution-data-server/-/issues/332
+ '-DEDS_DISABLE_DEPRECATED',
]
if get_option('buildtype') != 'plain'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]