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:
@ -6759,10 +6759,10 @@ struct SORT_FIELD_ATTR
|
||||
CHARSET_INFO *cs;
|
||||
uint pack_sort_string(uchar *to, const Binary_string *str,
|
||||
CHARSET_INFO *cs) const;
|
||||
int compare_packed_fixed_size_vals(uchar *a, size_t *a_len,
|
||||
uchar *b, size_t *b_len);
|
||||
int compare_packed_varstrings(uchar *a, size_t *a_len,
|
||||
uchar *b, size_t *b_len);
|
||||
int compare_packed_fixed_size_vals(const uchar *a, size_t *a_len,
|
||||
const uchar *b, size_t *b_len);
|
||||
int compare_packed_varstrings(const uchar *a, size_t *a_len,
|
||||
const uchar *b, size_t *b_len);
|
||||
bool check_if_packing_possible(THD *thd) const;
|
||||
bool is_variable_sized() { return type == VARIABLE_SIZE; }
|
||||
void set_length_and_original_length(THD *thd, uint length_arg);
|
||||
|
Reference in New Issue
Block a user