summaryrefslogtreecommitdiff
path: root/callouts
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-04-05 21:18:43 +0200
committerLubomir Rintel <lkundrak@v3.sk>2016-04-05 22:22:58 +0200
commit9152dec99f479d82400f464ab47d45b8cbd8e0eb (patch)
treeb5d135bd5302fbb2757c3b0bf1052a7156b8115c /callouts
parent29cfb144a8cdfce697c63175b1bfa36e0d95a6ad (diff)
downloadNetworkManager-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 'callouts')
-rw-r--r--callouts/Makefile.am1
-rw-r--r--callouts/tests/Makefile.am1
2 files changed, 0 insertions, 2 deletions
diff --git a/callouts/Makefile.am b/callouts/Makefile.am
index 6440a4de02..5279b2f4a4 100644
--- a/callouts/Makefile.am
+++ b/callouts/Makefile.am
@@ -7,7 +7,6 @@ AM_CPPFLAGS = \
-I${top_builddir}/libnm-core \
$(GLIB_CFLAGS) \
-DNETWORKMANAGER_COMPILATION \
- -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
-DNMCONFDIR=\"$(nmconfdir)\" \
-DSYSCONFDIR=\"$(sysconfdir)\" \
-DLIBEXECDIR=\"$(libexecdir)\"
diff --git a/callouts/tests/Makefile.am b/callouts/tests/Makefile.am
index ee3f647d37..6ac158746c 100644
--- a/callouts/tests/Makefile.am
+++ b/callouts/tests/Makefile.am
@@ -8,7 +8,6 @@ AM_CPPFLAGS = \
-I$(top_srcdir)/callouts \
-I$(top_builddir)/callouts \
-DNETWORKMANAGER_COMPILATION \
- -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
-DSRCDIR=\"$(abs_srcdir)\" \
$(GLIB_CFLAGS)