summaryrefslogtreecommitdiffstats
path: root/VNFs/DPPD-PROX/handle_acl.c
diff options
context:
space:
mode:
authorXavier Simonart <xavier.simonart@intel.com>2019-10-08 17:54:22 -0400
committerXavier Simonart <xavier.simonart@intel.com>2019-10-08 17:54:22 -0400
commit67560734daab81c050a13d3b435d7eca4442c199 (patch)
tree212b479dc70c32755d05a25c3d5c087183aad27a /VNFs/DPPD-PROX/handle_acl.c
parentca79a59426e4c462d786e602427cf9c29450d2b0 (diff)
Fix compatibility with GCC 6 and earlier
fb0c44a fixed compilation on GCC 8 by using: 1) #pragma GCC diagnostic ignored "-Wstringop-truncation" 2) __attribute__ ((fallthrough)); However, -Wstringop-truncation has only been introduced in GCC 8 and __attribute__ ((fallthrough)) has only been introduced in GCC 7. Hence they caused Warnings/Errors on earlier versions. Comments about fallthough (see https://developers.redhat.com/blog/2017/03/10/wimplicit-fallthrough-in-gcc-7/) can be used on GCC 8 to prevent fall through warnings Signed-off-by: Xavier Simonart <xavier.simonart@intel.com> Change-Id: I6f22e023191bbf22d8b01f1812061795a6494134
Diffstat (limited to 'VNFs/DPPD-PROX/handle_acl.c')
-rw-r--r--VNFs/DPPD-PROX/handle_acl.c2
1 files changed, 1 insertions, 1 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;