mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +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:
@@ -38,7 +38,9 @@ int key_cmp(KEY_PART_INFO *key_part, const uchar *key, uint key_length);
|
||||
ulong key_hashnr(KEY *key_info, uint used_key_parts, const uchar *key);
|
||||
bool key_buf_cmp(KEY *key_info, uint used_key_parts,
|
||||
const uchar *key1, const uchar *key2);
|
||||
extern "C" int key_rec_cmp(void *key_info, uchar *a, uchar *b);
|
||||
int key_tuple_cmp(KEY_PART_INFO *part, uchar *key1, uchar *key2, uint tuple_length);
|
||||
extern "C" int key_rec_cmp(const KEY *const *key_info, const uchar *a,
|
||||
const uchar *b);
|
||||
int key_tuple_cmp(KEY_PART_INFO *part, const uchar *key1, const uchar *key2,
|
||||
uint tuple_length);
|
||||
|
||||
#endif /* KEY_INCLUDED */
|
||||
|
Reference in New Issue
Block a user