1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-04 20:07:36 +00:00

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.
This commit is contained in:
Evangelos Ribeiro Tzaras 2021-06-22 07:35:20 +02:00 committed by Guido Gunther
parent 2df190c548
commit a4c2b64319

View file

@ -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'