With --enable-Werror and --with-dpdk=no:

../utilities/ovs-ofctl.c: In function 'ofctl_group_mod_file':
../utilities/ovs-ofctl.c:3107:16: error: 'usable_protocols' may be used 
uninitialized in this function [-Werror=maybe-uninitialized]
 3107 |     protocol = open_vconn_for_flow_mod(remote, &vconn, 
usable_protocols);
      |                ^
../utilities/ovs-ofctl.c:3124:27: note: 'usable_protocols' was declared here
 3124 |     enum ofputil_protocol usable_protocols;
      |                           ^

Fixes: 69185eb25acb ("ovs-ofctl: Only allow usable protocols for group 
commands")
Signed-off-by: Eli Britstein <[email protected]>
---
 utilities/ovs-ofctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utilities/ovs-ofctl.c b/utilities/ovs-ofctl.c
index fe9114580..6805140d6 100644
--- a/utilities/ovs-ofctl.c
+++ b/utilities/ovs-ofctl.c
@@ -3121,7 +3121,7 @@ static void
 ofctl_group_mod_file(int argc OVS_UNUSED, char *argv[], int command)
 {
     struct ofputil_group_mod *gms = NULL;
-    enum ofputil_protocol usable_protocols;
+    enum ofputil_protocol usable_protocols = 0;
     size_t n_gms = 0;
     char *error;
 
-- 
2.26.2.1730.g385c171

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to