-O3 warnings be gone 44/444/1
authorDave Barach <dave@barachs.net>
Mon, 29 Feb 2016 14:45:08 +0000 (09:45 -0500)
committerDave Barach <dave@barachs.net>
Mon, 29 Feb 2016 14:45:28 +0000 (09:45 -0500)
Note that compiling -O3 doesn't improve performance as of this
writing, might as well clean up warnings in any event.

Change-Id: Ic2f4982d12fbbf36f5324075183982731759dc94
Signed-off-by: Dave Barach <dave@barachs.net>
vnet/vnet/ethernet/node.c
vnet/vnet/vcgn/vcgn_classify.c
vppinfra/vppinfra/pfhash.c

index 9aed302..1ec49c4 100644 (file)
@@ -842,7 +842,7 @@ ethernet_sw_interface_add_del (vnet_main_t * vnm,
   clib_error_t * error = 0;
   subint_config_t *subint;
   u32 match_flags;
-  u32 unsupported;
+  u32 unsupported=0;
 
   // Find the config for this subinterface
   subint = ethernet_sw_interface_get_config (vnm, sw_if_index, &match_flags, &unsupported);
index 4a1d746..8db229e 100644 (file)
@@ -939,7 +939,7 @@ set_vcgn_nfv9_logging_cofig_command_fn (vlib_main_t * vm,
 /* vcgn changes start*/
     cnat_nfv9_logging_info_t *my_nfv9_logging_info = NULL;
     cnat_nfv9_logging_info_t *my_nfv9_logging_info_tmp = NULL;
-    cnat_vrfmap_t *my_vrfmap = 0, *my_vrfmap_temp; 
+    cnat_vrfmap_t *my_vrfmap = 0, *my_vrfmap_temp = 0
     u16           i_vrf;
     u32           i_vrf_id;
     u8            found;
index 7946b5e..4bea068 100644 (file)
@@ -337,7 +337,7 @@ static pfhash_kv_t * pfhash_get_internal (pfhash_t * p, u32 bucket_contents,
 u64 pfhash_get (pfhash_t * p, u32 bucket, void * key)
 {
   pfhash_kv_t *kv;
-  u32 match_index;
+  u32 match_index=~0;
   pfhash_kv_16_t * kv16;
   pfhash_kv_8_t * kv8;
   pfhash_kv_8v8_t * kv8v8;