• Marko Mäkelä's avatar
    Fix GCC 11 -Wmaybe-uninitialized for PLUGIN_PERFSCHEMA · fda704c8
    Marko Mäkelä authored
    init_mutex_v1_t: Stop lying that the mutex parameter is const.
    GCC 11.2.0 assumes that it is and could complain about any mysql_mutex_t
    being uninitialized even after mysql_mutex_init() as long as
    PLUGIN_PERFSCHEMA is enabled.
    
    init_rwlock_v1_t, init_cond_v1_t: Remove untruthful const qualifiers.
    
    Note: init_socket_v1_t is expecting that the socket fd has already
    been created before PSI_SOCKET_CALL(init_socket), and therefore that
    parameter really is being treated as a pointer to const.
    fda704c8
psi.h 67.3 KB