build: improve our use of glib's version macros to catch more bugs
authorDan Winship <danw@gnome.org>
Sat, 8 Feb 2014 13:03:49 +0000 (14:03 +0100)
committerDan Winship <danw@gnome.org>
Thu, 13 Feb 2014 16:24:37 +0000 (11:24 -0500)
commit64c5395cb1cc9e491b96b6bb86df72cb3c606627
treeb642c4b8f2849c7876e495057a623be7a561f14f
parent9c4d86ee8064fa36710b8d2d242d9618d4fc763a
build: improve our use of glib's version macros to catch more bugs

We were setting GLIB_VERSION_MAX_ALLOWED to 2.34, since we provide
reimplementations of a few 2.34 functions in nm-glib-compat.h. But
this was turning off warnings for the 2.34+ APIs we *didn't* have
compat versions of too.

Fix this by setting MAX_ALLOWED to 2.32 (same as MIN_REQUIRED), and
defining macros to wrap calls to compat-ified functions and disable
deprecation warnings around them.

This points out several places where we were accidentally using 2.34
APIs without noticing, which need to be fixed now.
Makefile.am
configure.ac
include/nm-glib-compat.h
tui/newt/Makefile.am
tui/newt/nmt-newt-types.h
tui/newt/nmt-newt-utils.c