mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +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:
@ -268,8 +268,8 @@ private:
|
||||
longlong m_idx;
|
||||
};
|
||||
|
||||
int compare_packed_sort_keys(void *sort_keys, unsigned char **a,
|
||||
unsigned char **b);
|
||||
qsort2_cmp get_packed_keys_compare_ptr();
|
||||
int compare_packed_sort_keys(void *sort_param, const void *a_ptr,
|
||||
const void *b_ptr);
|
||||
qsort_cmp2 get_packed_keys_compare_ptr();
|
||||
|
||||
#endif // FILESORT_UTILS_INCLUDED
|
||||
|
Reference in New Issue
Block a user