[HALX86] Fix a Clang-Cl warning about KiUnexpectedInterrupt 551/head
authorSerge Gautherie <reactos-git_serge_171003@gautherie.fr>
Fri, 18 May 2018 04:51:00 +0000 (06:51 +0200)
committerThomas Faber <thomas.faber@reactos.org>
Wed, 13 Jun 2018 08:48:55 +0000 (10:48 +0200)
"warning: cast between incompatible calling conventions 'cdecl' and 'fastcall'; calls through this pointer may abort at runtime [-Wcast-calling-convention]"

CORE-14306

hal/halx86/up/pic.c

index d3e5529..e39f81a 100644 (file)
@@ -405,7 +405,7 @@ PHAL_SW_INTERRUPT_HANDLER SWInterruptHandlerTable[20] =
 /* Handlers for pending software interrupts when we already have a trap frame*/
 PHAL_SW_INTERRUPT_HANDLER_2ND_ENTRY SWInterruptHandlerTable2[3] =
 {
-    (PHAL_SW_INTERRUPT_HANDLER_2ND_ENTRY)KiUnexpectedInterrupt,
+    (PHAL_SW_INTERRUPT_HANDLER_2ND_ENTRY)(PVOID)KiUnexpectedInterrupt,
     HalpApcInterrupt2ndEntry,
     HalpDispatchInterrupt2ndEntry
 };