File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -482,9 +482,18 @@ static RTL_OSVERSIONINFOEXW GetWindowsVer() {
482482 HMODULE hMod = ::GetModuleHandleW (L" ntdll.dll" );
483483 assert (hMod);
484484
485+ #if defined(__clang__)
486+ #pragma clang diagnostic push
487+ #pragma clang diagnostic ignored "-Wcast-function-type-mismatch"
488+ #endif
489+
485490 auto getVer = (RtlGetVersionPtr)::GetProcAddress (hMod, " RtlGetVersion" );
486491 assert (getVer);
487492
493+ #if defined(__clang__)
494+ #pragma clang diagnostic pop
495+ #endif
496+
488497 RTL_OSVERSIONINFOEXW info{};
489498 info.dwOSVersionInfoSize = sizeof (info);
490499 NTSTATUS r = getVer ((PRTL_OSVERSIONINFOW)&info);
Original file line number Diff line number Diff line change @@ -167,6 +167,11 @@ static bool isDebugHelpInitialized() {
167167 return fStackWalk64 && fSymInitialize && fSymSetOptions && fMiniDumpWriteDump ;
168168}
169169
170+ #if defined(__clang__)
171+ #pragma clang diagnostic push
172+ #pragma clang diagnostic ignored "-Wcast-function-type-mismatch"
173+ #endif
174+
170175static bool load64BitDebugHelp (void ) {
171176 HMODULE hLib =
172177 ::LoadLibraryExA (" Dbghelp.dll" , NULL , LOAD_LIBRARY_SEARCH_SYSTEM32);
@@ -192,6 +197,10 @@ static bool load64BitDebugHelp(void) {
192197 return isDebugHelpInitialized ();
193198}
194199
200+ #if defined(__clang__)
201+ #pragma clang diagnostic pop
202+ #endif
203+
195204using namespace llvm ;
196205
197206// Forward declare.
You can’t perform that action at this time.
0 commit comments