summaryrefslogtreecommitdiffstats
path: root/common/VIL/pipeline_common/pipeline_common_fe.c
diff options
context:
space:
mode:
authorVishwesh M Rudramuni <vishwesh.m.rudramuni@intel.com>2017-07-24 04:23:58 +0530
committerVishwesh M Rudramuni <vishwesh.m.rudramuni@intel.com>2017-07-24 04:25:57 +0530
commit3bd0ffd52aff6fc44f55445f22de46f1cd7d5cbd (patch)
tree1021004d0a48a116e772cd20534f951324c23591 /common/VIL/pipeline_common/pipeline_common_fe.c
parente0fe1551eea78f6504f5ed4bb36d9dd22a43fffc (diff)
[common] fixing compiler warnings
patch fixes some compiler warnings Change-Id: If1f96b23243d556c69ebd390a4fd3313bc50bb57 Signed-off-by: Vishwesh M Rudramuni <vishwesh.m.rudramuni@intel.com>
Diffstat (limited to 'common/VIL/pipeline_common/pipeline_common_fe.c')
-rw-r--r--common/VIL/pipeline_common/pipeline_common_fe.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/common/VIL/pipeline_common/pipeline_common_fe.c b/common/VIL/pipeline_common/pipeline_common_fe.c
index 7d362a55..5d6976b5 100644
--- a/common/VIL/pipeline_common/pipeline_common_fe.c
+++ b/common/VIL/pipeline_common/pipeline_common_fe.c
@@ -553,8 +553,8 @@ extern uint32_t nd_route_tbl_index;
/*
* This implements route add entries for ipv4
*/
-int app_routeadd_config_ipv4(struct app_params *app, uint32_t port_id,
-uint32_t ip, uint32_t mask)
+int app_routeadd_config_ipv4(__attribute__((unused)) struct app_params *app,
+ uint32_t port_id, uint32_t ip, uint32_t mask)
{
if (port_id > MAX_PORTS) {
printf("Max ports allowed is %d\n", MAX_PORTS);
@@ -580,8 +580,8 @@ uint32_t ip, uint32_t mask)
/*
* This implements route add entries for ipv6
*/
-int app_routeadd_config_ipv6(struct app_params *app, uint32_t port_id,
-uint8_t ipv6[], uint32_t depth)
+int app_routeadd_config_ipv6(__attribute__((unused)) struct app_params *app,
+ uint32_t port_id, uint8_t ipv6[], uint32_t depth)
{
int i;
@@ -626,14 +626,14 @@ cmd_routeadd_parsed(
int status;
uint32_t port_id = params->port_id;
- uint32_t i, ip, depth, mask;
+ uint32_t i, ip = 0, depth = 0, mask = 0;
uint8_t ipv6[16];
+
if (params->ip.family == AF_INET) {
ip = rte_bswap32((uint32_t) params->ip.addr.ipv4.s_addr);
mask = strtoul(params->depth, NULL, 16);
printf("ip:%x mask:%x port_id:%d\n", ip, mask, port_id);
- }
- else {
+ } else {
memcpy(ipv6, params->ip.addr.ipv6.s6_addr, 16);
depth = atoi(params->depth);
for (i=0;i<16;i++)