Skip to content

Commit befb42f

Browse files
committed
qt: Silence -Wcast-function-type warning
Required for bitcoin/bitcoin#25972. Picked from https://trac.nginx.org/nginx/ticket/1865.
1 parent 8f7b9eb commit befb42f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qt/winshutdownmonitor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ bool WinShutdownMonitor::nativeEventFilter(const QByteArray &eventType, void *pM
4343
void WinShutdownMonitor::registerShutdownBlockReason(const QString& strReason, const HWND& mainWinId)
4444
{
4545
typedef BOOL (WINAPI *PSHUTDOWNBRCREATE)(HWND, LPCWSTR);
46-
PSHUTDOWNBRCREATE shutdownBRCreate = (PSHUTDOWNBRCREATE)GetProcAddress(GetModuleHandleA("User32.dll"), "ShutdownBlockReasonCreate");
46+
PSHUTDOWNBRCREATE shutdownBRCreate = (PSHUTDOWNBRCREATE)(void*)GetProcAddress(GetModuleHandleA("User32.dll"), "ShutdownBlockReasonCreate");
4747
if (shutdownBRCreate == nullptr) {
4848
qWarning() << "registerShutdownBlockReason: GetProcAddress for ShutdownBlockReasonCreate failed";
4949
return;

0 commit comments

Comments
 (0)