aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2021-05-05 20:06:39 +0200
committerFlorin Coras <florin.coras@gmail.com>2021-05-05 19:44:46 +0000
commit11e0d752e67ac3da804e2af798d12995ae401434 (patch)
treeffc6d1ad8ab0b0767efca5a1cd44e23ca5478579 /src
parent7d14aad6379ebf96b75dd076260a2fccb7caa3b4 (diff)
vppinfra: enfoce function pointer cast in CLIB_MARCH_FN_POINTER
Type: improvement Change-Id: I6ba9f9467a3990f1436a60b1dbc6cb795fd18ba9 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vppinfra/cpu.h4
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 \