Details
-
Bug
-
Status: Done
-
Medium
-
Resolution: Fixed
-
8.0.x
-
None
Description
clang 5.0.1 (also clang 4.0) on Ubuntu Bionic reports a lot of "missing-braces" warnings:
/data/mysql-server/mysql-8.0/storage/innobase/clone/clone0api.cc:1852:36: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] Fixup_data::s_config_tables = {"slave_relay_log_info", "slave_worker_info"}; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ { } /data/mysql-server/mysql-8.0/router/src/http/src/kdf_sha_crypt.cc:283:9: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] 20, 10, 0, 11, 1, 21, 2, 22, 12, 23, 13, 3, 14, 4, 24, 5, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ { /data/mysql-server/mysql-8.0/router/src/harness/src/loader.cc:170:42: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] const std::array<int, 6> g_fatal_signals{SIGSEGV, SIGABRT, SIGBUS, ^~~~~~~~~~~~~~~~~~~~~~~~~ { /usr/include/x86_64-linux-gnu/bits/signum-generic.h:52:18: note: expanded from macro 'SIGSEGV' #define SIGSEGV 11 /* Invalid access to storage. */ ^