summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--VNFs/DPPD-PROX/handle_acl.c2
-rw-r--r--VNFs/DPPD-PROX/parse_utils.c4
-rw-r--r--VNFs/DPPD-PROX/prox_compat.h1
3 files changed, 4 insertions, 3 deletions
diff --git a/VNFs/DPPD-PROX/handle_acl.c b/VNFs/DPPD-PROX/handle_acl.c
index c0a1b86b..5138eef9 100644
--- a/VNFs/DPPD-PROX/handle_acl.c
+++ b/VNFs/DPPD-PROX/handle_acl.c
@@ -108,7 +108,7 @@ static int handle_acl_bulk(struct task_base *tbase, struct rte_mbuf **mbufs, uin
break;
case ACL_ALLOW:
out[i] = 0;
- __attribute__ ((fallthrough));
+ // __attribute__ ((fallthrough));
case ACL_RATE_LIMIT:
set_tc(mbufs[i], 3);
break;
diff --git a/VNFs/DPPD-PROX/parse_utils.c b/VNFs/DPPD-PROX/parse_utils.c
index 84ff8cc9..af98ec2b 100644
--- a/VNFs/DPPD-PROX/parse_utils.c
+++ b/VNFs/DPPD-PROX/parse_utils.c
@@ -923,12 +923,12 @@ int parse_kmg(uint32_t* val, const char *str2)
if (*val >> 22)
return -2;
*val <<= 10;
- __attribute__ ((fallthrough));
+ // __attribute__ ((fallthrough));
case 'M':
if (*val >> 22)
return -2;
*val <<= 10;
- __attribute__ ((fallthrough));
+ // __attribute__ ((fallthrough));
case 'K':
if (*val >> 22)
return -2;
diff --git a/VNFs/DPPD-PROX/prox_compat.h b/VNFs/DPPD-PROX/prox_compat.h
index 7564f294..e1ead1d3 100644
--- a/VNFs/DPPD-PROX/prox_compat.h
+++ b/VNFs/DPPD-PROX/prox_compat.h
@@ -133,6 +133,7 @@ static void *prox_rte_table_create(struct prox_rte_table_params *params, int soc
static inline char *prox_strncpy(char * dest, const char * src, size_t count)
{
#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wpragmas"
#pragma GCC diagnostic ignored "-Wstringop-truncation"
strncpy(dest, src, count);
#pragma GCC diagnostic pop