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:
parent
c957d46f1d
commit
83e1a0bad8
@ -18,7 +18,9 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#ifndef _BUILDING_LVM
|
||||||
#warning "liblvm2app is deprecated, use D-Bus API instead."
|
#warning "liblvm2app is deprecated, use D-Bus API instead."
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -261,6 +261,8 @@ endif
|
|||||||
# end of fPIC protection
|
# end of fPIC protection
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
DEFS += -D_BUILDING_LVM
|
||||||
|
|
||||||
LDFLAGS += -L$(top_builddir)/libdm -L$(top_builddir)/lib
|
LDFLAGS += -L$(top_builddir)/libdm -L$(top_builddir)/lib
|
||||||
CLDFLAGS += -L$(top_builddir)/libdm -L$(top_builddir)/lib
|
CLDFLAGS += -L$(top_builddir)/libdm -L$(top_builddir)/lib
|
||||||
|
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <Python.h>
|
#include <Python.h>
|
||||||
|
#define _BUILDING_LVM
|
||||||
#include "lvm2app.h"
|
#include "lvm2app.h"
|
||||||
#include "defaults.h"
|
#include "defaults.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user