fix Clang warnings

This commit is contained in:
oltolm 2023-06-28 00:10:25 +02:00
parent 86409a9c4f
commit 96b4b2904c
23 changed files with 86 additions and 55 deletions

View file

@ -140,6 +140,7 @@ void CompatPatchesInstall(LdrWatcher* watcher)
}});
}
#ifdef _MSC_VER
int __cdecl EnableCompatPatches()
{
static LdrWatcher watcher;
@ -159,4 +160,5 @@ int __cdecl EnableCompatPatches()
extern "C" {
__declspec(allocate(".CRT$XCZ")) decltype(&EnableCompatPatches)
enableCompatPatches = EnableCompatPatches;
}
};
#endif