Fix appveyor of MSVC for __RPC_CALLEE
Looks like some versions do not accept __RPC_CALLEE. Otherwise the clang compiler for Windows will output a warning like this: src\core\SignalHandler.cpp(46,25): error: cast between incompatible calling conventions 'cdecl' and 'stdcall'; calls through this pointer may abort at runtime [-Werror,-Wcast-calling-convention] SetConsoleCtrlHandler(PHANDLER_ROUTINE(ctrlHandler), true); \src\core\SignalHandler.h(48,15): note: consider defining 'ctrlHandler' with the 'stdcall' calling convention static BOOL ctrlHandler(DWORD pCtrlType); ^ __RPC_CALLEEpull/15/head
parent
84d957f9a8
commit
f1182c1587
|
@ -45,7 +45,7 @@ class SignalHandler
|
|||
#elif defined(Q_OS_WIN)
|
||||
|
||||
private:
|
||||
static BOOL __RPC_CALLEE ctrlHandler(DWORD pCtrlType);
|
||||
static BOOL WINAPI ctrlHandler(DWORD pCtrlType);
|
||||
#endif
|
||||
|
||||
private Q_SLOTS:
|
||||
|
|
|
@ -16,7 +16,7 @@ using namespace governikus;
|
|||
Q_DECLARE_LOGGING_CATEGORY(system)
|
||||
|
||||
|
||||
BOOL __RPC_CALLEE SignalHandler::ctrlHandler(DWORD pCtrlType)
|
||||
BOOL WINAPI SignalHandler::ctrlHandler(DWORD pCtrlType)
|
||||
{
|
||||
qCWarning(system) << "Got signal:" << pCtrlType;
|
||||
|
||||
|
|
Loading…
Reference in New Issue