From a4c2b64319b130a9eb328cad9ae2699b718722e4 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Tue, 22 Jun 2021 07:35:20 +0200 Subject: [PATCH] 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 7f2144c..657df0d 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'