1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

lvm2app: Suppress deprecation warnings for our builds

This commit is contained in:
Marian Csontos 2017-12-14 13:49:33 +01:00
parent c957d46f1d
commit 83e1a0bad8
3 changed files with 5 additions and 0 deletions

View File

@ -18,7 +18,9 @@
#include <stdint.h>
#ifndef _BUILDING_LVM
#warning "liblvm2app is deprecated, use D-Bus API instead."
#endif
#ifdef __cplusplus
extern "C" {

View File

@ -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

View File

@ -22,6 +22,7 @@
*/
#include <Python.h>
#define _BUILDING_LVM
#include "lvm2app.h"
#include "defaults.h"