Uploaded image for project: 'Percona Server for MySQL'
  1. Percona Server for MySQL
  2. PS-6054

clang 5.0.1 reports "missing-braces" warnings

Details

    • Bug
    • Status: Done
    • Medium
    • Resolution: Fixed
    • 8.0.x
    • 8.0.18-9
    • 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.  */
                              ^
      
      

      Attachments

        Activity

          People

            przemyslaw.skibinski Przemyslaw Skibinski
            przemyslaw.skibinski Przemyslaw Skibinski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 3 hours
                3h

                Smart Checklist