diff options
Diffstat (limited to 'vnet/vnet/policer/xlate.c')
-rw-r--r-- | vnet/vnet/policer/xlate.c | 4 |
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 |