diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2018-05-01 01:10:37 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2018-05-01 16:52:19 +0300 |
commit | 2b27ac8282ed81b1b0c65e748d66498b81b85cee (patch) | |
tree | 7c4b94e0507fe71392a045477fabdcfbcd80b802 /storage/innobase/os/os0event.cc | |
parent | 87b0434e0f6ddcf0801355eb08d39c4fd02dd4e9 (diff) | |
download | mariadb-git-2b27ac8282ed81b1b0c65e748d66498b81b85cee.tar.gz |
Fix many -Wunused-parameter
Remove unused InnoDB function parameters and functions.
i_s_sys_virtual_fill_table(): Do not allocate heap memory.
mtr_is_block_fix(): Replace with mtr_memo_contains().
mtr_is_page_fix(): Replace with mtr_memo_contains_page().
Diffstat (limited to 'storage/innobase/os/os0event.cc')
-rw-r--r-- | storage/innobase/os/os0event.cc | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/storage/innobase/os/os0event.cc b/storage/innobase/os/os0event.cc index 98b474c0bda..73067bf7fe7 100644 --- a/storage/innobase/os/os0event.cc +++ b/storage/innobase/os/os0event.cc @@ -48,7 +48,7 @@ typedef os_event_list_t::iterator event_iter_t; /** InnoDB condition variable. */ struct os_event { - os_event(const char* name) UNIV_NOTHROW; + os_event() UNIV_NOTHROW; ~os_event() UNIV_NOTHROW; @@ -415,7 +415,7 @@ os_event::wait_time_low( } /** Constructor */ -os_event::os_event(const char* name) UNIV_NOTHROW +os_event::os_event() UNIV_NOTHROW { init(); @@ -444,14 +444,9 @@ Creates an event semaphore, i.e., a semaphore which may just have two states: signaled and nonsignaled. The created event is manual reset: it must be reset explicitly by calling sync_os_reset_event. @return the event handle */ -os_event_t -os_event_create( -/*============*/ - const char* name) /*!< in: the name of the - event, if NULL the event - is created without a name */ +os_event_t os_event_create(const char*) { - return(UT_NEW_NOKEY(os_event(name))); + return(UT_NEW_NOKEY(os_event())); } /** |