mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Fix for compiler warnings on windows
Fix wrong cast of time() include/my_pthread.h: Safety fix that also removes compiler warnings sql/handler.h: Changed timestamp columns to be of type time_t storage/maria/ma_check.c: Removed wrong cast storage/maria/ma_create.c: Removed wrong cast storage/myisam/mi_check.c: Removed wrong cast storage/myisam/mi_create.c: Removed wrong cast storage/xtradb/handler/ha_innodb.cc: Removed compiler warning on windows
This commit is contained in:
@@ -575,7 +575,7 @@ int mi_create(const char *name,uint keys,MI_KEYDEF *keydefs,
|
||||
max(share.base.pack_reclength,MI_MIN_BLOCK_LENGTH) :
|
||||
MI_EXTEND_BLOCK_LENGTH;
|
||||
if (! (flags & HA_DONT_TOUCH_DATA))
|
||||
share.state.create_time= (long) time((time_t*) 0);
|
||||
share.state.create_time= time((time_t*) 0);
|
||||
|
||||
pthread_mutex_lock(&THR_LOCK_myisam);
|
||||
|
||||
|
Reference in New Issue
Block a user