From 11e0d752e67ac3da804e2af798d12995ae401434 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Wed, 5 May 2021 20:06:39 +0200 Subject: vppinfra: enfoce function pointer cast in CLIB_MARCH_FN_POINTER Type: improvement Change-Id: I6ba9f9467a3990f1436a60b1dbc6cb795fd18ba9 Signed-off-by: Damjan Marion --- src/vppinfra/cpu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/vppinfra') diff --git a/src/vppinfra/cpu.h b/src/vppinfra/cpu.h index 40857fb245b..c770b9c0a19 100644 --- a/src/vppinfra/cpu.h +++ b/src/vppinfra/cpu.h @@ -81,8 +81,8 @@ clib_march_select_fn_ptr (clib_march_fn_registration * r) return rv; } -#define CLIB_MARCH_FN_POINTER(fn) \ - clib_march_select_fn_ptr (fn##_march_fn_registrations); +#define CLIB_MARCH_FN_POINTER(fn) \ + (__typeof__ (fn) *) clib_march_select_fn_ptr (fn##_march_fn_registrations); #define _CLIB_MARCH_FN_REGISTRATION(fn) \ static clib_march_fn_registration \ -- cgit 1.2.3-korg