vppinfra: enfoce function pointer cast in CLIB_MARCH_FN_POINTER
Type: improvement
@@ -82,7 +82,7 @@ clib_march_select_fn_ptr (clib_march_fn_registration * r)
}
#define CLIB_MARCH_FN_POINTER(fn) \
- clib_march_select_fn_ptr (fn##_march_fn_registrations);
+ (__typeof__ (fn) *) clib_march_select_fn_ptr (fn##_march_fn_registrations);
#define _CLIB_MARCH_FN_REGISTRATION(fn) \
static clib_march_fn_registration \
