From: Ben Pfaff Date: Tue, 22 Jul 2014 18:50:37 +0000 (-0700) Subject: debian: Avoid -Wformat-zero-length warnings. X-Git-Tag: v2.4.0~1758 X-Git-Url: http://git.cascardo.eti.br/?a=commitdiff_plain;ds=sidebyside;h=346f5890a4b89546acb4fdfddb4f0b2fc24d8997;p=cascardo%2Fovs.git debian: Avoid -Wformat-zero-length warnings. Debian puts an extra "-Wformat" in the CFLAGS following OVS's own "-Wformat -Wno-format-zero-length", which therefore overrides -Wno-format-zero-length, so this commit adds an extra -Wno-format-zero-length to avoid those false positives. Signed-off-by: Ben Pfaff Acked-by: Justin Pettit --- diff --git a/debian/rules b/debian/rules index 5cf9f02f5..081f24a3b 100755 --- a/debian/rules +++ b/debian/rules @@ -35,6 +35,13 @@ endif buildflags := $(shell if dpkg-buildflags --export=configure >/dev/null 2>&1; \ then dpkg-buildflags --export=configure; fi) +# dpkg-buildflags tends to turn on -Wformat, which is admirable, but +# the -Wformat-zero-length subset of that option triggers a couple of +# false positives in Open vSwitch so turn it right back off again. +# (We do this in configure.ac also, but the Debian buildflags override +# those.) +buildflags := $(patsubst -Wformat,-Wformat -Wno-format-zero-length,$(buildflags)) + configure: configure-stamp configure-stamp: dh_testdir