From 58f36203b1d6b5481caa98cc3c5bf8cf7c0f6411 Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Mon, 9 Apr 2018 23:24:07 +0200 Subject: [PATCH] Fix cast to function pointer. --- library/profile_profil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/profile_profil.c b/library/profile_profil.c index cde7d53..ee75f32 100644 --- a/library/profile_profil.c +++ b/library/profile_profil.c @@ -136,7 +136,7 @@ profil(unsigned short *buffer, size_t bufSize, size_t offset, unsigned int scale ProfileData.CounterStart = GetCounterStart(); /* Set interrupt vector */ - CounterInt.is_Code = (void (*)())CounterIntFn; + CounterInt.is_Code = (void (*)(void))CounterIntFn; CounterInt.is_Data = &ProfileData; IPM->SetInterruptVector(1, &CounterInt);