diff options
author | Gabriel Ganne <gabriel.ganne@enea.com> | 2017-10-26 10:35:28 +0200 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2017-10-26 15:40:55 +0000 |
commit | d71e0fc2945d03ce628de979eca8ba8c82febf63 (patch) | |
tree | df7d2b5efeed7b7879c51a118f1e4bffbafb5373 | |
parent | df58ea98f10ca0c83cba226f750e0e8d4061de97 (diff) |
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 <gabriel.ganne@enea.com>
-rw-r--r-- | src/vnet/fib/fib_test.c | 2 | ||||
-rw-r--r-- | src/vnet/fib/fib_test.h | 2 | ||||
-rw-r--r-- | src/vnet/mfib/mfib_test.c | 2 |
3 files changed, 3 insertions, 3 deletions
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 diff --git a/src/vnet/mfib/mfib_test.c b/src/vnet/mfib/mfib_test.c index 3ec00a74aa8..2cb663a5eb6 100644 --- a/src/vnet/mfib/mfib_test.c +++ b/src/vnet/mfib/mfib_test.c @@ -232,7 +232,7 @@ fib_forw_chain_type_from_fib_proto (fib_protocol_t proto) static int mfib_test_entry (fib_node_index_t fei, mfib_entry_flags_t eflags, - u16 n_buckets, + int n_buckets, ...) { const mfib_entry_t *mfe; |