disabling lvm is rather hard, as it might be one of the more commonly
used modules.
Instead for the given case the following seems less invasive.

diff --git a/debian/rules b/debian/rules
index cac99e0..06b46cb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,7 +17,7 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all
CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS)
CPPFLAGS += -I$(CURDIR)/debian/include
CFLAGS = $(shell dpkg-buildflags --get CFLAGS)
-CFLAGS += -Wall -Wno-error=deprecated-declarations
+CFLAGS += -Wall -Wno-error=deprecated-declarations -Wno-cpp

# Upstream defaults to ${sysconfdir}/collectd.conf. Setting ${sysconfdir} to
# /etc/collectd would be wrong though.

-- 
Christian Ehrhardt
Software Engineer, Ubuntu Server
Canonical Ltd

Reply via email to