• Marko Mäkelä's avatar
    Fix some __attribute__((nonnull)) misuse · 54bb04f7
    Marko Mäkelä authored
    This fixes warnings that were emitted when running InnoDB test
    suites on a debug server that was compiled with GCC 7.1.0 using
    the flags -O3 -fsanitize=undefined.
    
    thd_requested_durability(): XtraDB can call this with trx->mysql_thd=NULL.
    Remove the function in InnoDB, because it is not used there.
    
    calc_row_difference(): Do not call memcmp(o_ptr, NULL, 0).
    
    innobase_index_name_is_reserved(): This can be called with
    key_info=NULL, num_of_keys=0.
    
    innobase_dropping_foreign(), innobase_check_foreigns_low(),
    innobase_check_foreigns(): This can be called with
    drop_fk=NULL, n_drop_fk=0.
    
    rec_convert_dtuple_to_rec_comp(): Do not invoke memcpy(end, NULL, 0).
    54bb04f7
ha_innodb.cc 570 KB