aboutsummaryrefslogtreecommitdiffstats
path: root/vnet
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2016-02-29 09:45:08 -0500
committerDave Barach <dave@barachs.net>2016-02-29 09:45:28 -0500
commit8a4a781e965656c1037f1fb0563d0c93847b11c5 (patch)
treec26af22d3c08a1c5e572952ebd68218d7bf5e602 /vnet
parent802c7fae4d3376440eda31973ddac6770c7565c3 (diff)
-O3 warnings be gone
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>
Diffstat (limited to 'vnet')
-rw-r--r--vnet/vnet/ethernet/node.c2
-rw-r--r--vnet/vnet/vcgn/vcgn_classify.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/vnet/vnet/ethernet/node.c b/vnet/vnet/ethernet/node.c
index 9aed302f407..1ec49c4b805 100644
--- a/vnet/vnet/ethernet/node.c
+++ b/vnet/vnet/ethernet/node.c
@@ -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);
diff --git a/vnet/vnet/vcgn/vcgn_classify.c b/vnet/vnet/vcgn/vcgn_classify.c
index 4a1d7466beb..8db229ee28e 100644
--- a/vnet/vnet/vcgn/vcgn_classify.c
+++ b/vnet/vnet/vcgn/vcgn_classify.c
@@ -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;