[ovs-dev] [gcc46 1/2] connmgr: Remove unused variable.

Ethan Jackson ethan at nicira.com
Wed Apr 27 00:41:40 UTC 2011


Fixes the following warning:

ofproto/connmgr.c:396:11: error: variable 'ss_exists' set but not
used [-Werror=unused-but-set-variable]
---
 ofproto/connmgr.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/ofproto/connmgr.c b/ofproto/connmgr.c
index 83b3159..a76dc8e 100644
--- a/ofproto/connmgr.c
+++ b/ofproto/connmgr.c
@@ -393,7 +393,6 @@ connmgr_set_controllers(struct connmgr *mgr,
     struct shash new_controllers;
     struct ofconn *ofconn, *next_ofconn;
     struct ofservice *ofservice, *next_ofservice;
-    bool ss_exists;
     size_t i;
 
     /* Create newly configured controllers and services.
@@ -421,7 +420,6 @@ connmgr_set_controllers(struct connmgr *mgr,
 
     /* Delete controllers that are no longer configured.
      * Update configuration of all now-existing controllers. */
-    ss_exists = false;
     HMAP_FOR_EACH_SAFE (ofconn, next_ofconn, hmap_node, &mgr->controllers) {
         struct ofproto_controller *c;
 
-- 
1.7.4.4




More information about the dev mailing list