mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 03:17:20 +02:00
Fix compilation error in debug mode:
os/os0file.c:1332: error: ISO C90 forbids mixed declarations and code
This commit is contained in:
parent
f4c0571679
commit
b1bb5d8cb9
2 changed files with 26 additions and 28 deletions
|
|
@ -1210,27 +1210,19 @@ os_file_create(
|
|||
ibool* success)/* out: TRUE if succeed, FALSE if error */
|
||||
{
|
||||
#ifdef __WIN__
|
||||
os_file_t file;
|
||||
DWORD share_mode = FILE_SHARE_READ;
|
||||
DWORD create_flag;
|
||||
DWORD attributes;
|
||||
ibool retry;
|
||||
|
||||
DBUG_EXECUTE_IF(
|
||||
"ib_create_table_fail_disk_full",
|
||||
*success = FALSE;
|
||||
SetLastError(ERROR_DISK_FULL);
|
||||
return((os_file_t) -1);
|
||||
);
|
||||
#else /* __WIN__ */
|
||||
DBUG_EXECUTE_IF(
|
||||
"ib_create_table_fail_disk_full",
|
||||
*success = FALSE;
|
||||
errno = ENOSPC;
|
||||
return((os_file_t) -1);
|
||||
);
|
||||
#endif /* __WIN__ */
|
||||
|
||||
#ifdef __WIN__
|
||||
os_file_t file;
|
||||
DWORD share_mode = FILE_SHARE_READ;
|
||||
DWORD create_flag;
|
||||
DWORD attributes;
|
||||
ibool retry;
|
||||
try_again:
|
||||
ut_a(name);
|
||||
|
||||
|
|
@ -1334,6 +1326,13 @@ try_again:
|
|||
ibool retry;
|
||||
const char* mode_str = NULL;
|
||||
|
||||
DBUG_EXECUTE_IF(
|
||||
"ib_create_table_fail_disk_full",
|
||||
*success = FALSE;
|
||||
errno = ENOSPC;
|
||||
return((os_file_t) -1);
|
||||
);
|
||||
|
||||
try_again:
|
||||
ut_a(name);
|
||||
|
||||
|
|
|
|||
|
|
@ -1250,27 +1250,19 @@ os_file_create(
|
|||
ibool* success)/*!< out: TRUE if succeed, FALSE if error */
|
||||
{
|
||||
#ifdef __WIN__
|
||||
os_file_t file;
|
||||
DWORD share_mode = FILE_SHARE_READ;
|
||||
DWORD create_flag;
|
||||
DWORD attributes;
|
||||
ibool retry;
|
||||
|
||||
DBUG_EXECUTE_IF(
|
||||
"ib_create_table_fail_disk_full",
|
||||
*success = FALSE;
|
||||
SetLastError(ERROR_DISK_FULL);
|
||||
return((os_file_t) -1);
|
||||
);
|
||||
#else /* __WIN__ */
|
||||
DBUG_EXECUTE_IF(
|
||||
"ib_create_table_fail_disk_full",
|
||||
*success = FALSE;
|
||||
errno = ENOSPC;
|
||||
return((os_file_t) -1);
|
||||
);
|
||||
#endif /* __WIN__ */
|
||||
|
||||
#ifdef __WIN__
|
||||
os_file_t file;
|
||||
DWORD share_mode = FILE_SHARE_READ;
|
||||
DWORD create_flag;
|
||||
DWORD attributes;
|
||||
ibool retry;
|
||||
try_again:
|
||||
ut_a(name);
|
||||
|
||||
|
|
@ -1386,6 +1378,13 @@ try_again:
|
|||
ibool retry;
|
||||
const char* mode_str = NULL;
|
||||
|
||||
DBUG_EXECUTE_IF(
|
||||
"ib_create_table_fail_disk_full",
|
||||
*success = FALSE;
|
||||
errno = ENOSPC;
|
||||
return((os_file_t) -1);
|
||||
);
|
||||
|
||||
try_again:
|
||||
ut_a(name);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue