After resolving DPDK cast align warnings as stated in [1], and resolving some more warnings in OVS side, enforce -Werror for debian and rhel builds too.
[1] 0b6d2faace76 ("ci: Remove -Wno-cast-align from CI.") Signed-off-by: Eli Britstein <el...@nvidia.com> --- debian/rules | 4 ++-- rhel/openvswitch.spec.in | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/debian/rules b/debian/rules index 971bc1775..ffc218e9d 100755 --- a/debian/rules +++ b/debian/rules @@ -24,7 +24,7 @@ override_dh_auto_configure: cd _debian && ( \ test -e Makefile || \ ../configure --prefix=/usr --localstatedir=/var --enable-ssl \ - --sysconfdir=/etc \ + --sysconfdir=/etc --enable-Werror \ $(DATAPATH_CONFIGURE_OPTS) \ $(EXTRA_CONFIGURE_OPTS) \ ) @@ -34,7 +34,7 @@ ifeq (,$(filter nodpdk, $(DEB_BUILD_OPTIONS))) cd _dpdk && ( \ test -e Makefile || \ ../configure --prefix=/usr --localstatedir=/var --enable-ssl \ - --with-dpdk=shared --sysconfdir=/etc \ + --with-dpdk=shared --sysconfdir=/etc --enable-Werror \ $(DATAPATH_CONFIGURE_OPTS) \ $(EXTRA_CONFIGURE_OPTS) \ ) diff --git a/rhel/openvswitch.spec.in b/rhel/openvswitch.spec.in index 9903dd10a..35ae42356 100644 --- a/rhel/openvswitch.spec.in +++ b/rhel/openvswitch.spec.in @@ -70,7 +70,7 @@ Tailored Open vSwitch SELinux policy %build ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=%{_localstatedir} \ - --libdir=%{_libdir} --enable-ssl --enable-shared + --libdir=%{_libdir} --enable-ssl --enable-shared --enable-Werror make %{_smp_mflags} make selinux-policy -- 2.26.2.1730.g385c171 _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev