From d71e0fc2945d03ce628de979eca8ba8c82febf63 Mon Sep 17 00:00:00 2001 From: Gabriel Ganne Date: Thu, 26 Oct 2017 10:35:28 +0200 Subject: fib test - fix undefined behavior warning found by clang warning: passing an object that undergoes default argument promotion to 'va_start' has undefined behavior [-Wvarargs] Change-Id: Ic9cfd61e38983bd67f30bf92f605e6c87d103ca5 Signed-off-by: Gabriel Ganne --- src/vnet/fib/fib_test.c | 2 +- src/vnet/fib/fib_test.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/vnet/fib') diff --git a/src/vnet/fib/fib_test.c b/src/vnet/fib/fib_test.c index da517b0ceea..66a38236216 100644 --- a/src/vnet/fib/fib_test.c +++ b/src/vnet/fib/fib_test.c @@ -562,7 +562,7 @@ fib_test_validate_lb_v (const load_balance_t *lb, int fib_test_validate_entry (fib_node_index_t fei, fib_forward_chain_type_t fct, - u16 n_buckets, + int n_buckets, ...) { dpo_id_t dpo = DPO_INVALID; diff --git a/src/vnet/fib/fib_test.h b/src/vnet/fib/fib_test.h index 5adc52ec658..a9463d60830 100644 --- a/src/vnet/fib/fib_test.h +++ b/src/vnet/fib/fib_test.h @@ -107,7 +107,7 @@ extern int fib_test_validate_lb_v(const load_balance_t *lb, extern int fib_test_validate_entry(fib_node_index_t fei, fib_forward_chain_type_t fct, - u16 n_buckets, + int n_buckets, ...); #endif -- cgit 1.2.3-korg