From cc7a9fcac5a9f76d833e4d99b0cb3d45f4ca4a3b Mon Sep 17 00:00:00 2001 From: falkTX Date: Thu, 19 Aug 2021 21:16:43 +0100 Subject: [PATCH] One more compiler warning fix Signed-off-by: falkTX --- source/modules/water/files/File.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/modules/water/files/File.cpp b/source/modules/water/files/File.cpp index 25babbfba..3e5316604 100644 --- a/source/modules/water/files/File.cpp +++ b/source/modules/water/files/File.cpp @@ -968,7 +968,14 @@ bool File::createSymbolicLink (const File& linkFileToCreate, bool overwriteExist #ifdef CARLA_OS_WIN typedef BOOLEAN (WINAPI* PFUNC)(LPCTSTR, LPCTSTR, DWORD); +# if defined(__GNUC__) && (__GNUC__ >= 9) +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wcast-function-type" +# endif const PFUNC pfn = (PFUNC)GetProcAddress(GetModuleHandle(TEXT("kernel32.dll")), "CreateSymbolicLinkA"); +# if defined(__GNUC__) && (__GNUC__ >= 9) +# pragma GCC diagnostic pop +# endif CARLA_SAFE_ASSERT_RETURN(pfn != nullptr, false); return pfn(linkFileToCreate.getFullPathName().toRawUTF8(), fullPath.toRawUTF8(),