From 0eaeb9e50cb6114b0808ee140326ab015c533cee Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 10 Mar 2017 02:29:25 +0300 Subject: Fix compilation warnings with mingw. --- src/gui/windowmanager.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/gui') diff --git a/src/gui/windowmanager.cpp b/src/gui/windowmanager.cpp index ce0b0132d..e578a21c9 100644 --- a/src/gui/windowmanager.cpp +++ b/src/gui/windowmanager.cpp @@ -374,8 +374,11 @@ void WindowManager::setIcon() else SDL::getWindowWMInfo(nullptr, &pInfo); // Attempt to load icon from .ico file - HICON icon = (HICON) LoadImage(nullptr, iconFile.c_str(), - IMAGE_ICON, 64, 64, LR_LOADFROMFILE); + HICON icon = static_cast(LoadImage(nullptr, + iconFile.c_str(), + IMAGE_ICON, + 64, 64, + LR_LOADFROMFILE)); // If it's failing, we load the default resource file. if (!icon) { -- cgit v1.2.3-70-g09d2