mirror of
https://github.com/MariaDB/server.git
synced 2025-07-25 15:08:40 +00:00
MDEV-34348: Consolidate cmp function declarations
Partial commit of the greater MDEV-34348 scope. MDEV-34348: MariaDB is violating clang-16 -Wcast-function-type-strict The functions queue_compare, qsort2_cmp, and qsort_cmp2 all had similar interfaces, and were used interchangable and unsafely cast to one another. This patch consolidates the functions all into the qsort_cmp2 interface. Reviewed By: ============ Marko Mäkelä <marko.makela@mariadb.com>
This commit is contained in:
@ -70,7 +70,7 @@
|
||||
*/
|
||||
|
||||
int init_queue(QUEUE *queue, uint max_elements, uint offset_to_key,
|
||||
my_bool max_at_top, int (*compare) (void *, uchar *, uchar *),
|
||||
my_bool max_at_top, qsort_cmp2 compare,
|
||||
void *first_cmp_arg, uint offset_to_queue_pos,
|
||||
uint auto_extent)
|
||||
{
|
||||
@ -109,7 +109,7 @@ int init_queue(QUEUE *queue, uint max_elements, uint offset_to_key,
|
||||
*/
|
||||
|
||||
int reinit_queue(QUEUE *queue, uint max_elements, uint offset_to_key,
|
||||
my_bool max_at_top, int (*compare) (void *, uchar *, uchar *),
|
||||
my_bool max_at_top, qsort_cmp2 compare,
|
||||
void *first_cmp_arg, uint offset_to_queue_pos,
|
||||
uint auto_extent)
|
||||
{
|
||||
|
Reference in New Issue
Block a user