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 <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2018-07-13 07:26:32 -04:00
parent e3c5f7b689
commit 9fc8a332b1

View File

@ -116,8 +116,8 @@ static void check_lookup_result(struct list *list, va_list arglist)
assert(prefix_count == listcount(list)); 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; va_list arglist;
struct list *list = list_new(); struct list *list = list_new();