From: Donald Sharp Date: Wed, 3 Aug 2016 14:26:31 +0000 (-0400) Subject: lib: Arm build breakage with MAX_INT macro issues X-Git-Tag: frr-2.0-rc1~411^2~4 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=c152e0c131786a2ddc1bfdc5d5bcbe503adc4617;p=matthieu%2Ffrr.git lib: Arm build breakage with MAX_INT macro issues The VTY_GET_INTEGER_RANGE macro is failing on arm with a warning->error issue where we are passing in a unsigned MAXINT to this macro and it is complaining that the comparison of (TMPL) > MAXINT is always going to be false because of data structure size. I've changed the tmp variable to a unsigned long long which alleviates this issue. Ticket: CM-12187 Signed-off-by: Donald Sharp Reviewed-by: Don Slice --- diff --git a/lib/vty.h b/lib/vty.h index 81251e07bb..599882a382 100644 --- a/lib/vty.h +++ b/lib/vty.h @@ -220,7 +220,7 @@ do { \ #define VTY_GET_INTEGER_RANGE(NAME,V,STR,MIN,MAX) \ do { \ - unsigned long tmpl; \ + unsigned long long tmpl; \ VTY_GET_INTEGER_RANGE_HEART(NAME,tmpl,STR,MIN,MAX); \ (V) = tmpl; \ } while (0)