mdbx: resolve all warnings from MinGW.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev)
2022-03-30 18:13:08 +03:00
parent 21da42d23d
commit 6f37c8e57f
9 changed files with 47 additions and 4 deletions

View File

@@ -754,6 +754,11 @@ MDBX_GetTickCount64 mdbx_GetTickCount64;
MDBX_RegGetValueA mdbx_RegGetValueA;
#endif /* xMDBX_ALLOY */
#if __GNUC_PREREQ(8, 0)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-function-type"
#endif /* GCC/MINGW */
static void mdbx_winnt_import(void) {
const HINSTANCE hNtdll = GetModuleHandleA("ntdll.dll");
@@ -805,4 +810,8 @@ static void mdbx_winnt_import(void) {
}
}
#if __GNUC_PREREQ(8, 0)
#pragma GCC diagnostic pop
#endif /* GCC/MINGW */
#endif /* Windows LCK-implementation */