build: Update deprecation warnings symbols
authorEmmanuele Bassi <ebassi@gnome.org>
Mon, 22 May 2017 08:55:41 +0000 (09:55 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 22 May 2017 12:44:20 +0000 (13:44 +0100)
The old '*_DISABLE_DEPRECATED` pre-processor symbol class has been
deprecated now that the G* stack has moved on to versioned symbols and
versioned deprecation warnings. The appropriate way to disable compiler
warnings when building is to use `*_DISABLE_DEPRECATION_WARNINGS`.

atk/Makefile.am
atk/meson.build

index ad083fb..3f9db90 100644 (file)
@@ -19,8 +19,8 @@ endif
 AM_CPPFLAGS = \
        -I$(top_srcdir) \
        -I$(top_builddir) \
-       -DG_DISABLE_DEPRECATED \
-       -DATK_DISABLE_DEPRECATED \
+       -DGLIB_DISABLE_DEPRECATION_WARNINGS \
+       -DATK_DISABLE_DEPRECATIO_WARNINGS \
        -DATK_COMPILATION \
        -DATK_LOCALEDIR="\"$(datadir)/locale\"" \
        $(DEP_CFLAGS) \
index 1654d6a..d92b6f0 100644 (file)
@@ -101,7 +101,8 @@ atk_enum_h = atk_enums[1]
 atk_cflags = [
   '-DG_LOG_DOMAIN="Atk"',
   '-DG_LOG_USE_STRUCTURED=1',
-  '-DATK_DISABLE_DEPRECATED',
+  '-DGLIB_DISABLE_DEPRECATION_WARNINGS',
+  '-DATK_DISABLE_DEPRECATION_WARNINGS',
   '-DATK_COMPILATION',
   '-DATK_LOCALEDIR="@0@"'.format(join_paths(atk_datadir, 'locale')),
 ]