1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Windows, compiling : use /permissive- switch to improve conformance

fix a couple "initialization skipped by goto" and other new errors.
This commit is contained in:
Vladislav Vaintroub
2018-02-07 01:40:16 +00:00
parent 8fe04a3df3
commit 53476abce8
12 changed files with 61 additions and 42 deletions

View File

@ -72,6 +72,7 @@ void dump_single_process(DWORD pid)
char path[MAX_PATH];
char working_dir[MAX_PATH];
char tmpname[MAX_PATH];
char *filename= 0;
process= OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, pid);
if (!process)
@ -88,7 +89,7 @@ void dump_single_process(DWORD pid)
goto exit;
}
char *filename= strrchr(path, '\\');
filename= strrchr(path, '\\');
if (filename)
{
filename++;