mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03: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:
@ -323,10 +323,9 @@ int dynamic_column_error_message(enum_dyncol_func_result rc);
|
||||
/* open_and_lock_tables with optional derived handling */
|
||||
int open_and_lock_tables_derived(THD *thd, TABLE_LIST *tables, bool derived);
|
||||
|
||||
extern "C" int simple_raw_key_cmp(void* arg, const void* key1,
|
||||
const void* key2);
|
||||
extern "C" qsort_cmp2 simple_raw_key_cmp;
|
||||
extern "C" int count_distinct_walk(void *elem, element_count count, void *arg);
|
||||
int simple_str_key_cmp(void* arg, uchar* key1, uchar* key2);
|
||||
int simple_str_key_cmp(void *arg, const void *key1, const void *key2);
|
||||
|
||||
extern Item **not_found_item;
|
||||
extern Field *not_found_field;
|
||||
|
Reference in New Issue
Block a user