From 9fc8a332b10b7ef14ffbadb167dcffdafcc8174f Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 13 Jul 2018 07:26:32 -0400 Subject: [PATCH] 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 --- tests/bgpd/test_bgp_table.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.39.5