diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-08-03 16:26:31 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-08-03 21:11:44 +0200 |
commit | c152e0c131786a2ddc1bfdc5d5bcbe503adc4617 (patch) | |
tree | 13be01a8656f8014a6a05795c8027f7d056a9ccc | |
parent | bgpd: Add command to prefer global ipv6 address (diff) | |
download | frr-c152e0c131786a2ddc1bfdc5d5bcbe503adc4617.tar.xz frr-c152e0c131786a2ddc1bfdc5d5bcbe503adc4617.zip |
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 <sharpd@cumulusnetworks.com>
Reviewed-by: Don Slice <dslice@cumulusnetworks.com>
-rw-r--r-- | lib/vty.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |