Bug #83421 compile error: error: nonnull argument 'table' compared to NULL [-Werror=nonnull
Submitted: 18 Oct 2016 3:55 Modified: 25 Oct 2018 9:48
Reporter: Daniel Black Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.7.16 OS:Ubuntu (ubuntu-16.04)
Assigned to: CPU Architecture:ARM

[18 Oct 2016 3:55] Daniel Black
Description:
Compile error:

How to repeat:
sudo -E add-apt-repository -y ppa:ubuntu-toolchain-r/test &&            
        apt-get update && apt-get install -y gcc-6 g++-6

cmake /source -DCMAKE_BUILD_TYPE=Debug -DBUILD_CONFIG=mysql_release -DWITH_PROTOBUF=system -DWITH_NDB_JAVA=NO -DCMAKE_C_COMPILER=gcc-6 -DCMAKE_CXX_COMPILER=g++-6 '-DCMAKE_C_FLAGS_RELWITHDEBINFO=-m64 -O3 -g -mtune=native' '-DCMAKE_CXX_FLAGS_RELWITHDEBINFO=-m64 -O3 -g -mtune=native' '-DCMAKE_C_FLAGS=-m64 -O3 -g -mtune=native' '-DCMAKE_CXX_FLAGS=-m64 -O3 -g -mtune=native' -DWITH_SSL=system -DCMAKE_INSTALL_PREFIX=/mysql/mysql-upstream-Debug-5.7 -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DWITH_BOOST=/build/boost_1_59_0.tar.gz
-- Running cmake version 3.5.1
-- Found Git: /usr/bin/git (found version "2.7.4") 
-- Configuring with MAX_INDEXES = 64U
-- The C compiler identification is GNU 6.2.0
-- The CXX compiler identification is GNU 6.2.0
-- Check for working C compiler: /usr/bin/gcc-6
-- Check for working C compiler: /usr/bin/gcc-6 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/g++-6
-- Check for working CXX compiler: /usr/bin/g++-6 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for include file libaio.h
-- Looking for include file libaio.h - found
-- Looking for io_queue_init in aio
-- Looking for io_queue_init in aio - found
-- Looking for SHM_HUGETLB
-- Looking for SHM_HUGETLB - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void *
-- Check size of void * - done

+ make -j32 --output-sync=recurse VERBOSE=1

make -f storage/innobase/CMakeFiles/innobase.dir/build.make storage/innobase/CMakeFiles/innobase.dir/build
make[2]: Entering directory '/build/build'
[ 23%] Building CXX object storage/innobase/CMakeFiles/innobase.dir/api/api0api.cc.o
cd /build/build/storage/innobase && ccache /usr/bin/g++-6   -DCOMPILER_HINTS -DHAVE_CONFIG_H -DHAVE_FALLOC_PUNCH_HOLE_AND_KEEP_SIZE=1 -DHAVE_IB_ATOMIC_PTHREAD_T_GCC=1 -DHAVE_IB_GCC_ATOMIC_COMPARE_EXCHANGE=1 -DHAVE_IB_GCC_ATOMIC_THREAD_FENCE=1 -DHAVE_IB_GCC_SYNC_SYNCHRONISE=1 -DHAVE_IB_LINUX_FUTEX=1 -DHAVE_LIBEVENT1 -DHAVE_LZ4=1 -DHAVE_NANOSLEEP=1 -DHAVE_SCHED_GETCPU=1 -DLINUX_NATIVE_AIO=1 -DMUTEX_EVENT -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I/build/build/include -I/source/extra/rapidjson/include -I/build/build/libbinlogevents/include -I/source/libbinlogevents/export -I/source/extra/lz4 -I/source/storage/innobase/include -I/source/storage/innobase/handler -I/source/libbinlogevents/include -I/source/include -I/source/sql -I/source/sql/auth -I/source/regex -I/source/zlib  -m64 -O3 -g -mtune=native -fPIC -Wall -Wextra -Wformat-security -Wvla -Woverloaded-virtual -Wno-unused-parameter -Werror -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -std=gnu++03 -DENABLED_DEBUG_SYNC -DSAFE_MUTEX -DUNIV_DEBUG   -DUNIV_LINUX -D_GNU_SOURCE=1 -o CMakeFiles/innobase.dir/api/api0api.cc.o -c /source/storage/innobase/api/api0api.cc
In file included from /source/storage/innobase/include/dict0dict.h:2140:0,
                 from /source/storage/innobase/include/rem0rec.ic:28,
                 from /source/storage/innobase/include/rem0rec.h:1119,
                 from /source/storage/innobase/include/usr0sess.h:37,
                 from /source/storage/innobase/include/que0que.ic:26,
                 from /source/storage/innobase/include/que0que.h:514,
                 from /source/storage/innobase/include/api0misc.h:32,
                 from /source/storage/innobase/api/api0api.cc:30:
/source/storage/innobase/include/dict0dict.ic: In function 'dict_index_t* dict_table_get_first_index(const dict_table_t*)':
/source/storage/innobase/include/dict0dict.ic:258:28: error: nonnull argument 'table' compared to NULL [-Werror=nonnull-compare]
  ut_ad(table);
                            ^               
In file included from /source/storage/innobase/include/data0data.h:691:0,
                 from /source/storage/innobase/include/que0que.h:30,
                 from /source/storage/innobase/include/api0misc.h:32,
                 from /source/storage/innobase/api/api0api.cc:30:
/source/storage/innobase/include/data0data.ic: In function 'void dfield_set_len(dfield_t*, ulint)':
/source/storage/innobase/include/data0data.ic:109:28: error: nonnull argument 'field' compared to NULL [-Werror=nonnull-compare]
  ut_ad(field);
                            ^               
In file included from /source/storage/innobase/include/data0data.h:691:0,
                 from /source/storage/innobase/include/que0que.h:30,
                 from /source/storage/innobase/include/api0misc.h:32,
                 from /source/storage/innobase/api/api0api.cc:30:
/source/storage/innobase/include/data0data.ic: In function 'ulint dtuple_get_n_fields(const dtuple_t*)':
/source/storage/innobase/include/data0data.ic:402:28: error: nonnull argument 'tuple' compared to NULL [-Werror=nonnull-compare]
  ut_ad(tuple);
                            ^               
In file included from /source/storage/innobase/include/data0data.h:691:0,
                 from /source/storage/innobase/include/que0que.h:30,
                 from /source/storage/innobase/include/api0misc.h:32,
                 from /source/storage/innobase/api/api0api.cc:30:
/source/storage/innobase/include/data0data.ic: In function 'ulint dfield_is_null(const dfield_t*)':
/source/storage/innobase/include/data0data.ic:127:28: error: nonnull argument 'field' compared to NULL [-Werror=nonnull-compare]
  ut_ad(field);
                            ^               
In file included from /source/storage/innobase/include/data0data.h:691:0,
                 from /source/storage/innobase/include/que0que.h:30,
                 from /source/storage/innobase/include/api0misc.h:32,
                 from /source/storage/innobase/api/api0api.cc:30:
/source/storage/innobase/include/data0data.ic: In function 'dtype_t* dfield_get_type(const dfield_t*)':
/source/storage/innobase/include/data0data.ic:45:28: error: nonnull argument 'field' compared to NULL [-Werror=nonnull-compare]
  ut_ad(field);
                            ^               
In file included from /source/storage/innobase/include/data0data.h:691:0,
                 from /source/storage/innobase/include/que0que.h:30,
                 from /source/storage/innobase/include/api0misc.h:32,
                 from /source/storage/innobase/api/api0api.cc:30:
/source/storage/innobase/include/data0data.ic: In function 'dtuple_t* dtuple_create_from_mem(void*, ulint, ulint, ulint)':
/source/storage/innobase/include/data0data.ic:472:28: error: nonnull argument 'buf' compared to NULL [-Werror=nonnull-compare]
  ut_ad(buf != NULL);
                             
In file included from /source/storage/innobase/include/data0data.h:691:0,
                 from /source/storage/innobase/include/que0que.h:30,
                 from /source/storage/innobase/include/api0misc.h:32,
                 from /source/storage/innobase/api/api0api.cc:30:
/source/storage/innobase/include/data0data.ic: In function 'void dfield_set_data(dfield_t*, const void*, ulint)':
/source/storage/innobase/include/data0data.ic:198:28: error: nonnull argument 'field' compared to NULL [-Werror=nonnull-compare]
  ut_ad(field);
                            ^               
In file included from /source/storage/innobase/include/data0data.h:691:0,
                 from /source/storage/innobase/include/que0que.h:30,
                 from /source/storage/innobase/include/api0misc.h:32,
                 from /source/storage/innobase/api/api0api.cc:30:
/source/storage/innobase/include/data0data.ic: In function 'ulint dfield_get_len(const dfield_t*)':
/source/storage/innobase/include/data0data.ic:93:28: error: nonnull argument 'field' compared to NULL [-Werror=nonnull-compare]
  ut_ad(field);
                            ^               
In file included from /source/storage/innobase/include/data0data.h:691:0,
                 from /source/storage/innobase/include/que0que.h:30,
                 from /source/storage/innobase/include/api0misc.h:32,
                 from /source/storage/innobase/api/api0api.cc:30:
/source/storage/innobase/include/data0data.ic: In function 'void* dfield_get_data(const dfield_t*)':
/source/storage/innobase/include/data0data.ic:76:28: error: nonnull argument 'field' compared to NULL [-Werror=nonnull-compare]
  ut_ad(field);
                            ^               
In file included from /source/storage/innobase/include/dict0dict.h:2140:0,
                 from /source/storage/innobase/include/rem0rec.ic:28,
                 from /source/storage/innobase/include/rem0rec.h:1119,
                 from /source/storage/innobase/include/usr0sess.h:37,
                 from /source/storage/innobase/include/que0que.ic:26,
                 from /source/storage/innobase/include/que0que.h:514,
                 from /source/storage/innobase/include/api0misc.h:32,
                 from /source/storage/innobase/api/api0api.cc:30:
/source/storage/innobase/include/dict0dict.ic: In function 'ulint dict_col_get_clust_pos(const dict_col_t*, const dict_index_t*)':
/source/storage/innobase/include/dict0dict.ic:207:28: error: nonnull argument 'col' compared to NULL [-Werror=nonnull-compare]
  ut_ad(col);
                            ^             
/source/storage/innobase/include/dict0dict.ic:208:28: error: nonnull argument 'clust_index' compared to NULL [-Werror=nonnull-compare]
  ut_ad(clust_index);
                            ^                     
/source/storage/innobase/include/dict0dict.ic: In function 'ulint dict_table_is_comp(const dict_table_t*)':
/source/storage/innobase/include/dict0dict.ic:638:28: error: nonnull argument 'table' compared to NULL [-Werror=nonnull-compare]
  ut_ad(table);
                            ^               
In file included from /source/storage/innobase/include/rem0rec.h:1119:0,
                 from /source/storage/innobase/include/usr0sess.h:37,
                 from /source/storage/innobase/include/que0que.ic:26,
                 from /source/storage/innobase/include/que0que.h:514,
                 from /source/storage/innobase/include/api0misc.h:32,
                 from /source/storage/innobase/api/api0api.cc:30:
/source/storage/innobase/include/rem0rec.ic: In function 'void rec_offs_set_n_alloc(ulint*, ulint)':
/source/storage/innobase/include/rem0rec.ic:961:28: error: nonnull argument 'offsets' compared to NULL [-Werror=nonnull-compare]
  ut_ad(offsets);
                            ^                 
In file included from /source/storage/innobase/include/dict0dict.h:2140:0,
                 from /source/storage/innobase/include/rem0rec.ic:28,
                 from /source/storage/innobase/include/rem0rec.h:1119,
                 from /source/storage/innobase/include/usr0sess.h:37,
                 from /source/storage/innobase/include/que0que.ic:26,
                 from /source/storage/innobase/include/que0que.h:514,
                 from /source/storage/innobase/include/api0misc.h:32,
                 from /source/storage/innobase/api/api0api.cc:30:
/source/storage/innobase/include/dict0dict.ic: In function 'ulint dict_index_get_n_fields(const dict_index_t*)':
/source/storage/innobase/include/dict0dict.ic:1125:28: error: nonnull argument 'index' compared to NULL [-Werror=nonnull-compare]
  ut_ad(index);
                            ^               
In file included from /source/storage/innobase/include/dict0dict.h:2140:0,
                 from /source/storage/innobase/include/rem0rec.ic:28,
                 from /source/storage/innobase/include/rem0rec.h:1119,
                 from /source/storage/innobase/include/usr0sess.h:37,
                 from /source/storage/innobase/include/que0que.ic:26,
                 from /source/storage/innobase/include/que0que.h:514,
                 from /source/storage/innobase/include/api0misc.h:32,
                 from /source/storage/innobase/api/api0api.cc:30:
/source/storage/innobase/include/dict0dict.ic: In function 'ulint dict_index_get_n_unique(const dict_index_t*)':
/source/storage/innobase/include/dict0dict.ic:1144:28: error: nonnull argument 'index' compared to NULL [-Werror=nonnull-compare]
  ut_ad(index);
                            ^               
/source/storage/innobase/include/dict0dict.ic: In function 'ulint dict_index_get_n_unique_in_tree(const dict_index_t*)':
/source/storage/innobase/include/dict0dict.ic:1163:28: error: nonnull argument 'index' compared to NULL [-Werror=nonnull-compare]
  ut_ad(index);
                            ^               
In file included from /source/storage/innobase/include/data0data.h:691:0,
                 from /source/storage/innobase/include/que0que.h:30,
                 from /source/storage/innobase/include/api0misc.h:32,
                 from /source/storage/innobase/api/api0api.cc:30:
/source/storage/innobase/include/data0data.ic: In function 'void dtuple_set_n_fields_cmp(dtuple_t*, ulint)':
/source/storage/innobase/include/data0data.ic:387:28: error: nonnull argument 'tuple' compared to NULL [-Werror=nonnull-compare]
  ut_ad(tuple);
                            ^               
/source/storage/innobase/include/data0data.ic: In function 'void dtuple_set_info_bits(dtuple_t*, ulint)':
/source/storage/innobase/include/data0data.ic:358:28: error: nonnull argument 'tuple' compared to NULL [-Werror=nonnull-compare]
  ut_ad(tuple);
                            ^               
In file included from /source/storage/innobase/include/dict0dict.h:2140:0,
                 from /source/storage/innobase/include/rem0rec.ic:28,
                 from /source/storage/innobase/include/rem0rec.h:1119,
                 from /source/storage/innobase/include/usr0sess.h:37,
                 from /source/storage/innobase/include/que0que.ic:26,
                 from /source/storage/innobase/include/que0que.h:514,
                 from /source/storage/innobase/include/api0misc.h:32,
                 from /source/storage/innobase/api/api0api.cc:30:
/source/storage/innobase/include/dict0dict.ic: In function 'dict_field_t* dict_index_get_nth_field(const dict_index_t*, ulint)':
/source/storage/innobase/include/dict0dict.ic:1228:28: error: nonnull argument 'index' compared to NULL [-Werror=nonnull-compare]
  ut_ad(index);
                            ^               
/source/storage/innobase/include/dict0dict.ic: In function 'const dict_col_t* dict_field_get_col(const dict_field_t*)':
/source/storage/innobase/include/dict0dict.ic:1270:28: error: nonnull argument 'field' compared to NULL [-Werror=nonnull-compare]
  ut_ad(field);
                            ^               
In file included from /source/storage/innobase/include/dict0dict.h:2140:0,
                 from /source/storage/innobase/include/rem0rec.ic:28,
                 from /source/storage/innobase/include/rem0rec.h:1119,
                 from /source/storage/innobase/include/usr0sess.h:37,
                 from /source/storage/innobase/include/que0que.ic:26,
                 from /source/storage/innobase/include/que0que.h:514,
                 from /source/storage/innobase/include/api0misc.h:32,
                 from /source/storage/innobase/api/api0api.cc:30:
/source/storage/innobase/include/dict0dict.ic: In function 'ulint dict_col_get_no(const dict_col_t*)':
/source/storage/innobase/include/dict0dict.ic:191:28: error: nonnull argument 'col' compared to NULL [-Werror=nonnull-compare]
  ut_ad(col);
                            ^             
In file included from /source/storage/innobase/include/rem0rec.h:1119:0,
                 from /source/storage/innobase/include/usr0sess.h:37,
                 from /source/storage/innobase/include/que0que.ic:26,
                 from /source/storage/innobase/include/que0que.h:514,
                 from /source/storage/innobase/include/api0misc.h:32,
                 from /source/storage/innobase/api/api0api.cc:30:
/source/storage/innobase/include/rem0rec.ic: In function 'ulint rec_get_nth_field_offs(const ulint*, ulint, ulint*)':
/source/storage/innobase/include/rem0rec.ic:1079:28: error: nonnull argument 'len' compared to NULL [-Werror=nonnull-compare]
  ut_ad(len);
                            ^             
In file included from /source/storage/innobase/include/dict0dict.h:2140:0,
                 from /source/storage/innobase/include/rem0rec.ic:28,
                 from /source/storage/innobase/include/rem0rec.h:1119,
                 from /source/storage/innobase/include/usr0sess.h:37,
                 from /source/storage/innobase/include/que0que.ic:26,
                 from /source/storage/innobase/include/que0que.h:514,
                 from /source/storage/innobase/include/api0misc.h:32,
                 from /source/storage/innobase/api/api0api.cc:30:
/source/storage/innobase/include/dict0dict.ic: In function 'dict_col_t* dict_table_get_nth_col(const dict_table_t*, ulint)':
/source/storage/innobase/include/dict0dict.ic:562:28: error: nonnull argument 'table' compared to NULL [-Werror=nonnull-compare]
  ut_ad(table);
                            ^               
cc1plus: all warnings being treated as errors
storage/innobase/CMakeFiles/innobase.dir/build.make:62: recipe for target 'storage/innobase/CMakeFiles/innobase.dir/api/api0api.cc.o' failed
make[2]: *** [storage/innobase/CMakeFiles/innobase.dir/api/api0api.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 24%] Building CXX object storage/innobase/CMakeFiles/innobase.dir/api/api0misc.cc.o
cd /build/build/storage/innobase && ccache /usr/bin/g++-6   -DCOMPILER_HINTS -DHAVE_CONFIG_H -DHAVE_FALLOC_PUNCH_HOLE_AND_KEEP_SIZE=1 -DHAVE_IB_ATOMIC_PTHREAD_T_GCC=1 -DHAVE_IB_GCC_ATOMIC_COMPARE_EXCHANGE=1 -DHAVE_IB_GCC_ATOMIC_THREAD_FENCE=1 -DHAVE_IB_GCC_SYNC_SYNCHRONISE=1 -DHAVE_IB_LINUX_FUTEX=1 -DHAVE_LIBEVENT1 -DHAVE_LZ4=1 -DHAVE_NANOSLEEP=1 -DHAVE_SCHED_GETCPU=1 -DLINUX_NATIVE_AIO=1 -DMUTEX_EVENT -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I/build/build/include -I/source/extra/rapidjson/include -I/build/build/libbinlogevents/include -I/source/libbinlogevents/export -I/source/extra/lz4 -I/source/storage/innobase/include -I/source/storage/innobase/handler -I/source/libbinlogevents/include -I/source/include -I/source/sql -I/source/sql/auth -I/source/regex -I/source/zlib  -m64 -O3 -g -mtune=native -fPIC -Wall -Wextra -Wformat-security -Wvla -Woverloaded-virtual -Wno-unused-parameter -Werror -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -std=gnu++03 -DENABLED_DEBUG_SYNC -DSAFE_MUTEX -DUNIV_DEBUG   -DUNIV_LINUX -D_GNU_SOURCE=1 -o CMakeFiles/innobase.dir/api/api0misc.cc.o -c /source/storage/innobase/api/api0misc.cc
[ 25%] Building CXX object storage/innobase/CMakeFiles/innobase.dir/btr/btr0pcur.cc.o
cd /build/build/storage/innobase && ccache /usr/bin/g++-6   -DCOMPILER_HINTS -DHAVE_CONFIG_H -DHAVE_FALLOC_PUNCH_HOLE_AND_KEEP_SIZE=1 -DHAVE_IB_ATOMIC_PTHREAD_T_GCC=1 -DHAVE_IB_GCC_ATOMIC_COMPARE_EXCHANGE=1 -DHAVE_IB_GCC_ATOMIC_THREAD_FENCE=1 -DHAVE_IB_GCC_SYNC_SYNCHRONISE=1 -DHAVE_IB_LINUX_FUTEX=1 -DHAVE_LIBEVENT1 -DHAVE_LZ4=1 -DHAVE_NANOSLEEP=1 -DHAVE_SCHED_GETCPU=1 -DLINUX_NATIVE_AIO=1 -DMUTEX_EVENT -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I/build/build/include -I/source/extra/rapidjson/include -I/build/build/libbinlogevents/include -I/source/libbinlogevents/export -I/source/extra/lz4 -I/source/storage/innobase/include -I/source/storage/innobase/handler -I/source/libbinlogevents/include -I/source/include -I/source/sql -I/source/sql/auth -I/source/regex -I/source/zlib  -m64 -O3 -g -mtune=native -fPIC -Wall -Wextra -Wformat-security -Wvla -Woverloaded-virtual -Wno-unused-parameter -Werror -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -std=gnu++03 -DENABLED_DEBUG_SYNC -DSAFE_MUTEX -DUNIV_DEBUG   -DUNIV_LINUX -D_GNU_SOURCE=1 -o CMakeFiles/innobase.dir/btr/btr0pcur.cc.o -c /source/storage/innobase/btr/btr0pcur.cc
In file included from /source/storage/innobase/include/dict0dict.h:2140:0,
                 from /source/storage/innobase/include/btr0pcur.h:30,
                 from /source/storage/innobase/btr/btr0pcur.cc:26:
/source/storage/innobase/include/dict0dict.ic: In function 'rw_lock_t* dict_index_get_lock(dict_index_t*)':
/source/storage/innobase/include/dict0dict.ic:1390:28: error: nonnull argument 'index' compared to NULL [-Werror=nonnull-compare]
  ut_ad(index);
                            ^               
cc1plus: all warnings being treated as errors
storage/innobase/CMakeFiles/innobase.dir/build.make:158: recipe for target 'storage/innobase/CMakeFiles/innobase.dir/btr/btr0pcur.cc.o' failed
make[2]: *** [storage/innobase/CMakeFiles/innobase.dir/btr/btr0pcur.cc.o] Error 1
[ 25%] Building CXX object storage/innobase/CMakeFiles/innobase.dir/btr/btr0btr.cc.o
cd /build/build/storage/innobase && ccache /usr/bin/g++-6   -DCOMPILER_HINTS -DHAVE_CONFIG_H -DHAVE_FALLOC_PUNCH_HOLE_AND_KEEP_SIZE=1 -DHAVE_IB_ATOMIC_PTHREAD_T_GCC=1 -DHAVE_IB_GCC_ATOMIC_COMPARE_EXCHANGE=1 -DHAVE_IB_GCC_ATOMIC_THREAD_FENCE=1 -DHAVE_IB_GCC_SYNC_SYNCHRONISE=1 -DHAVE_IB_LINUX_FUTEX=1 -DHAVE_LIBEVENT1 -DHAVE_LZ4=1 -DHAVE_NANOSLEEP=1 -DHAVE_SCHED_GETCPU=1 -DLINUX_NATIVE_AIO=1 -DMUTEX_EVENT -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I/build/build/include -I/source/extra/rapidjson/include -I/build/build/libbinlogevents/include -I/source/libbinlogevents/export -I/source/extra/lz4 -I/source/storage/innobase/include -I/source/storage/innobase/handler -I/source/libbinlogevents/include -I/source/include -I/source/sql -I/source/sql/auth -I/source/regex -I/source/zlib  -m64 -O3 -g -mtune=native -fPIC -Wall -Wextra -Wformat-security -Wvla -Woverloaded-virtual -Wno-unused-parameter -Werror -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -std=gnu++03 -DENABLED_DEBUG_SYNC -DSAFE_MUTEX -DUNIV_DEBUG   -DUNIV_LINUX -D_GNU_SOURCE=1 -o CMakeFiles/innobase.dir/btr/btr0btr.cc.o -c /source/storage/innobase/btr/btr0btr.cc
In file included from /source/storage/innobase/include/dict0dict.h:2140:0,
                 from /source/storage/innobase/include/btr0btr.h:32,
                 from /source/storage/innobase/btr/btr0btr.cc:27:
/source/storage/innobase/include/dict0dict.ic: In function 'ulint dict_index_get_space(const dict_index_t*)':
/source/storage/innobase/include/dict0dict.ic:1345:28: error: nonnull argument 'index' compared to NULL [-Werror=nonnull-compare]
  ut_ad(index);
                            ^               
/source/storage/innobase/include/dict0dict.ic: In function 'ulint dict_index_get_page(const dict_index_t*)':
/source/storage/innobase/include/dict0dict.ic:1375:28: error: nonnull argument 'index' compared to NULL [-Werror=nonnull-compare]
  ut_ad(index);
                            ^               
In file included from /source/storage/innobase/include/dict0dict.h:2140:0,
                 from /source/storage/innobase/include/btr0btr.h:32,
                 from /source/storage/innobase/btr/btr0btr.cc:27:
/source/storage/innobase/include/dict0dict.ic: In function 'ulint dict_table_is_comp(const dict_table_t*)':
/source/storage/innobase/include/dict0dict.ic:638:28: error: nonnull argument 'table' compared to NULL [-Werror=nonnull-compare]
  ut_ad(table);
                            ^
[18 Oct 2016 6:11] MySQL Verification Team
Hello Daniel,

Thank you for the report.
Verified as described.

Thanks,
Umesh
[18 Oct 2016 6:12] MySQL Verification Team
test results

Attachment: 83421_build.log (application/octet-stream, text), 522.40 KiB.

[25 Oct 2018 9:48] Erlend Dahl
Duplicate of

Bug#82583 Backport fix for #23195845 to 5.7