diff options
author | unknown <marko@hundin.mysql.fi> | 2005-06-10 15:55:00 +0300 |
---|---|---|
committer | unknown <marko@hundin.mysql.fi> | 2005-06-10 15:55:00 +0300 |
commit | f6da55d8ceb1ca731c7d5aeba11f7b858f253b30 (patch) | |
tree | 9b4fa2d2c7a8fab2cc64adbd020e949169a9d1bf /innobase/fil | |
parent | 2ebdd2d90a512812f366732e32dc4d42c323e004 (diff) | |
download | mariadb-git-f6da55d8ceb1ca731c7d5aeba11f7b858f253b30.tar.gz |
InnoDB: Remove compiler warning
innobase/fil/fil0fil.c:
Move the declaration of fil_node_t to os0file.h.
Remove type casting from address-of operation
(which would break strict aliasing rules)
innobase/include/os0file.h:
Declare fil_node_t as an opaque structure.
Replace void* message1 with fil_node_t* message1.
innobase/os/os0file.c:
Replace void* message1 with fil_node_t* message1.
Diffstat (limited to 'innobase/fil')
-rw-r--r-- | innobase/fil/fil0fil.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/innobase/fil/fil0fil.c b/innobase/fil/fil0fil.c index e8efdcfbce0..211ad1d01ed 100644 --- a/innobase/fil/fil0fil.c +++ b/innobase/fil/fil0fil.c @@ -98,7 +98,6 @@ ulint fil_n_pending_tablespace_flushes = 0; fil_addr_t fil_addr_null = {FIL_NULL, 0}; /* File node of a tablespace or the log data space */ -typedef struct fil_node_struct fil_node_t; struct fil_node_struct { fil_space_t* space; /* backpointer to the space where this node belongs */ @@ -4037,7 +4036,7 @@ fil_aio_wait( } else { srv_set_io_thread_op_info(segment, "simulated aio handle"); - ret = os_aio_simulated_handle(segment, (void**) &fil_node, + ret = os_aio_simulated_handle(segment, &fil_node, &message, &type); } |