mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-21907: Fix some -Wconversion outside InnoDB
Some .c and .cc files are compiled as part of Mariabackup. Enabling -Wconversion for InnoDB would also enable it for Mariabackup. The .h files are being included during InnoDB or Mariabackup compilation. Notably, GCC 5 (but not GCC 4 or 6 or later versions) would report -Wconversion for x|=y when the type is unsigned char. So, we will either write x=(uchar)(x|y) or disable the -Wconversion warning for GCC 5. bitmap_set_bit(), bitmap_flip_bit(), bitmap_clear_bit(), bitmap_is_set(): Always implement as inline functions.
This commit is contained in:
@ -960,9 +960,10 @@ typedef struct system_status_var
|
||||
#define last_system_status_var questions
|
||||
#define last_cleared_system_status_var local_memory_used
|
||||
|
||||
/* Number of contiguous global status variables. */
|
||||
const int COUNT_GLOBAL_STATUS_VARS= (offsetof(STATUS_VAR, last_system_status_var) /
|
||||
sizeof(ulong)) + 1;
|
||||
/** Number of contiguous global status variables */
|
||||
constexpr int COUNT_GLOBAL_STATUS_VARS= int(offsetof(STATUS_VAR,
|
||||
last_system_status_var) /
|
||||
sizeof(ulong)) + 1;
|
||||
|
||||
/*
|
||||
Global status variables
|
||||
|
Reference in New Issue
Block a user