summaryrefslogtreecommitdiffstats
path: root/vnet/vnet/policer/xlate.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2015-12-18 10:26:56 +0100
committerDamjan Marion <damarion@cisco.com>2015-12-18 13:31:56 +0100
commit2c29d75021d684559146e656aac85f0c14ffb5ab (patch)
treef170a34ab269e94ab8c98ff77cd591e1f63157eb /vnet/vnet/policer/xlate.c
parent5f1fd813c2773870ca92510c4e49a18810e9a4c8 (diff)
Fix warnings/errors reported by clang
Change-Id: Ifb2de64347526e3218e22067452f249ff878fd32 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'vnet/vnet/policer/xlate.c')
-rw-r--r--vnet/vnet/policer/xlate.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/vnet/vnet/policer/xlate.c b/vnet/vnet/policer/xlate.c
index 761e8214413..6e8c324a5d3 100644
--- a/vnet/vnet/policer/xlate.c
+++ b/vnet/vnet/policer/xlate.c
@@ -894,7 +894,7 @@ compute_policer_params (uint64_t hz, // CPU speed in clocks per
uint32_t max;
uint32_t scale_shift;
uint32_t scale_amount;
- uint32_t orig_current_limit = *current_limit;
+ uint32_t __attribute__((unused)) orig_current_limit = *current_limit;
// Compute period. For 1Ghz-to-8Ghz CPUs, the period will be in
// the range of 16 to 116 usec.
@@ -969,8 +969,6 @@ compute_policer_params (uint64_t hz, // CPU speed in clocks per
(unsigned long long)effective_BPS,
(double)cir_rate / (double)effective_BPS);
}
-#else
- orig_current_limit = orig_current_limit; // Make compiler happy
#endif
return 0; // ok