https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e01f935f0e48819c354237ff8e40c286063cf8eb

commit e01f935f0e48819c354237ff8e40c286063cf8eb
Author:     Serge Gautherie <reactos-git_serge_171...@gautherie.fr>
AuthorDate: Fri May 18 06:51:00 2018 +0200
Commit:     Thomas Faber <thomas.fa...@reactos.org>
CommitDate: Wed Jun 13 10:48:55 2018 +0200

    [HALX86] Fix a Clang-Cl warning about KiUnexpectedInterrupt
    
    "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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hal/halx86/up/pic.c b/hal/halx86/up/pic.c
index d3e5529d7e..e39f81a549 100644
--- a/hal/halx86/up/pic.c
+++ b/hal/halx86/up/pic.c
@@ -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
 };

Reply via email to