summaryrefslogtreecommitdiff
path: root/sql/mysqld.h
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2017-05-17 16:39:57 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2017-05-18 09:07:15 +0300
commit54bb04f7efc1d0842b3d8befb670f5d9f05cb211 (patch)
treeeef3f1c003286502241e8ed80c74028384fc650b /sql/mysqld.h
parenta436e349dfd0035b2b861ee772b47089043f5a2a (diff)
downloadmariadb-git-54bb04f7efc1d0842b3d8befb670f5d9f05cb211.tar.gz
Fix some __attribute__((nonnull)) misuse
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).
Diffstat (limited to 'sql/mysqld.h')
0 files changed, 0 insertions, 0 deletions