diff options
-rw-r--r-- | src/vppinfra/cpu.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 \ |