diff options
author | YohanPipereau <ypiperea@cisco.com> | 2019-03-15 11:23:07 +0100 |
---|---|---|
committer | YohanPipereau <ypiperea@cisco.com> | 2019-03-19 20:27:11 +0100 |
commit | 7dd61fc820323344c7479dd767a2ee0f84abd810 (patch) | |
tree | c8708178c67bfb0c94af11e90ce8075828ebf7a8 /src/scvpp/src/sc_vpp_nat.c | |
parent | 5776cb5567b68470f23acafb4bec3d01833ce6df (diff) |
Suppress compiler Warnings for scvpp
-Unused Warnings for callbacks are suppressed with UNUSED maccro
-Remove unused function.
Change-Id: Ic31a1b40d59a4d9c4fc638452dee36586d1dacd5
Signed-off-by: YohanPipereau <ypiperea@cisco.com>
Diffstat (limited to 'src/scvpp/src/sc_vpp_nat.c')
-rw-r--r-- | src/scvpp/src/sc_vpp_nat.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/scvpp/src/sc_vpp_nat.c b/src/scvpp/src/sc_vpp_nat.c index 1944684..e4bf2b7 100644 --- a/src/scvpp/src/sc_vpp_nat.c +++ b/src/scvpp/src/sc_vpp_nat.c @@ -24,13 +24,12 @@ DEFINE_VAPI_MSG_IDS_NAT_API_JSON static vapi_error_e -nat44_interface_dump_cb( - __attribute__((unused)) struct vapi_ctx_s *ctx, - void *callback_ctx, - __attribute__((unused)) vapi_error_e rv, - bool is_last, - vapi_payload_nat44_interface_details *reply) +nat44_interface_dump_cb(struct vapi_ctx_s *ctx, void *callback_ctx, + vapi_error_e rv, bool is_last, + vapi_payload_nat44_interface_details *reply) { + UNUSED(ctx); + UNUSED(rv); vapi_payload_nat44_interface_details *dctx = callback_ctx; assert(dctx); @@ -138,12 +137,11 @@ bin_api_nat44_add_del_static_mapping( } static vapi_error_e nat44_static_mapping_dump_cb( - __attribute__((unused)) struct vapi_ctx_s *ctx, - void *callback_ctx, - __attribute__((unused)) vapi_error_e rv, - bool is_last, - vapi_payload_nat44_static_mapping_details *reply) + struct vapi_ctx_s *ctx, void *callback_ctx, vapi_error_e rv, + bool is_last,vapi_payload_nat44_static_mapping_details *reply) { + UNUSED(rv); + UNUSED(ctx); vapi_payload_nat44_static_mapping_details *dctx = callback_ctx; assert(dctx); |