diff options
author | Thomas Haller <thaller@redhat.com> | 2016-04-05 21:18:43 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2016-04-05 22:22:58 +0200 |
commit | 9152dec99f479d82400f464ab47d45b8cbd8e0eb (patch) | |
tree | b5d135bd5302fbb2757c3b0bf1052a7156b8115c /libnm-util | |
parent | 29cfb144a8cdfce697c63175b1bfa36e0d95a6ad (diff) | |
download | NetworkManager-9152dec99f479d82400f464ab47d45b8cbd8e0eb.tar.gz |
build: disable deprecation checks for internal compilation
For internal compilation we want to be able to use deprecated
API without warnings.
Define the version min/max macros to effectively disable deprecation
warnings.
However, don't do it via CFLAGS option in the makefiles, instead hack it
to "nm-default.h". After all, *every* source file that is for internal
compilation needs to include this header as first.
Diffstat (limited to 'libnm-util')
-rw-r--r-- | libnm-util/Makefile.am | 1 | ||||
-rw-r--r-- | libnm-util/tests/Makefile.am | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/libnm-util/Makefile.am b/libnm-util/Makefile.am index e9ccdae7f3..8f51fc37c7 100644 --- a/libnm-util/Makefile.am +++ b/libnm-util/Makefile.am @@ -9,7 +9,6 @@ AM_CPPFLAGS = \ -DG_LOG_DOMAIN=\""libnm-util"\" \ -DLOCALEDIR=\"$(datadir)/locale\" \ -DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIB_LEGACY \ - -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \ $(GLIB_CFLAGS) \ $(DBUS_CFLAGS) \ $(UUID_CFLAGS) diff --git a/libnm-util/tests/Makefile.am b/libnm-util/tests/Makefile.am index eda212ed87..30adafcfd1 100644 --- a/libnm-util/tests/Makefile.am +++ b/libnm-util/tests/Makefile.am @@ -5,7 +5,6 @@ AM_CPPFLAGS = \ -I$(top_builddir)/shared \ -I$(top_srcdir)/libnm-util \ -I$(top_builddir)/libnm-util \ - -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \ $(GLIB_CFLAGS) \ $(DBUS_CFLAGS) \ -DBUILD_DIR=\"$(abs_builddir)\" \ |