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:
committed by
Guido Gunther
parent
2df190c548
commit
a4c2b64319
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user