• Marko Mäkelä's avatar
    MDEV-21907: Fix some -Wconversion outside InnoDB · d82ac8d3
    Marko Mäkelä authored
    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.
    d82ac8d3
sql_analyze_stmt.h 11.4 KB