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() {
482
482
HMODULE hMod = ::GetModuleHandleW (L" ntdll.dll" );
483
483
assert (hMod);
484
484
485
+ #if defined(__clang__)
486
+ #pragma clang diagnostic push
487
+ #pragma clang diagnostic ignored "-Wcast-function-type-mismatch"
488
+ #endif
489
+
485
490
auto getVer = (RtlGetVersionPtr)::GetProcAddress (hMod, " RtlGetVersion" );
486
491
assert (getVer);
487
492
493
+ #if defined(__clang__)
494
+ #pragma clang diagnostic pop
495
+ #endif
496
+
488
497
RTL_OSVERSIONINFOEXW info{};
489
498
info.dwOSVersionInfoSize = sizeof (info);
490
499
NTSTATUS r = getVer ((PRTL_OSVERSIONINFOW)&info);
Original file line number Diff line number Diff line change @@ -167,6 +167,11 @@ static bool isDebugHelpInitialized() {
167
167
return fStackWalk64 && fSymInitialize && fSymSetOptions && fMiniDumpWriteDump ;
168
168
}
169
169
170
+ #if defined(__clang__)
171
+ #pragma clang diagnostic push
172
+ #pragma clang diagnostic ignored "-Wcast-function-type-mismatch"
173
+ #endif
174
+
170
175
static bool load64BitDebugHelp (void ) {
171
176
HMODULE hLib =
172
177
::LoadLibraryExA (" Dbghelp.dll" , NULL , LOAD_LIBRARY_SEARCH_SYSTEM32);
@@ -192,6 +197,10 @@ static bool load64BitDebugHelp(void) {
192
197
return isDebugHelpInitialized ();
193
198
}
194
199
200
+ #if defined(__clang__)
201
+ #pragma clang diagnostic pop
202
+ #endif
203
+
195
204
using namespace llvm ;
196
205
197
206
// Forward declare.
You can’t perform that action at this time.
0 commit comments