From: Donald Sharp Date: Fri, 13 Jul 2018 11:26:32 +0000 (-0400) Subject: tests: Prevent weird type promotion objection in bgp tests X-Git-Tag: frr-6.1-dev~137^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=9fc8a332b10b7ef14ffbadb167dcffdafcc8174f;p=matthieu%2Ffrr.git tests: Prevent weird type promotion objection in bgp tests The va_start function cannot take a object that can be type promoted Looks like a new warning coming in from a new compiler. Signed-off-by: Donald Sharp --- diff --git a/tests/bgpd/test_bgp_table.c b/tests/bgpd/test_bgp_table.c index 01ce7480d7..a0382827b9 100644 --- a/tests/bgpd/test_bgp_table.c +++ b/tests/bgpd/test_bgp_table.c @@ -116,8 +116,8 @@ static void check_lookup_result(struct list *list, va_list arglist) assert(prefix_count == listcount(list)); } -static void do_test(struct bgp_table *table, const char *prefix, uint8_t maxlen, - ...) +static void do_test(struct bgp_table *table, const char *prefix, + uint32_t maxlen, ...) { va_list arglist; struct list *list = list_new();