master - lvm2app: Suppress deprecation warnings for our builds
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=83e1a0bad836f8950cb1e38924bf2600f118861e Commit: 83e1a0bad836f8950cb1e38924bf2600f118861e Parent: c957d46f1d73891e3a7e9c1482c1d4a39ca0e79a Author: Marian Csontos <[email protected]> AuthorDate: Thu Dec 14 13:49:33 2017 +0100 Committer: Marian Csontos <[email protected]> CommitterDate: Thu Dec 14 16:45:53 2017 +0100
lvm2app: Suppress deprecation warnings for our builds
--- liblvm/lvm2app.h | 2 ++ make.tmpl.in | 2 ++ python/liblvm.c | 1 + 3 files changed, 5 insertions(+), 0 deletions(-)
liblvm/lvm2app.h +2 -0
@@ -18,7 +18,9 @@#include <stdint.h> +#ifndef _BUILDING_LVM#warning "liblvm2app is deprecated, use D-Bus API instead." +#endif #ifdef __cplusplusextern "C" {
make.tmpl.in +2 -0
@@ -261,6 +261,8 @@ endif # end of fPIC protection endif +DEFS += -D_BUILDING_LVM + LDFLAGS += -L$(top_builddir)/libdm -L$(top_builddir)/lib CLDFLAGS += -L$(top_builddir)/libdm -L$(top_builddir)/lib
python/liblvm.c +1 -0
@@ -22,6 +22,7 @@*/ #include <Python.h> +#define _BUILDING_LVM#include "lvm2app.h" #include "defaults.h"