Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-31301

sql/opt_split.cc:1043:5: warning: ‘best_param_tables’ may be used uninitialized

    XMLWordPrintable

Details

    Description

      sql/opt_split.cc: In member function ‘SplM_plan_info* st_join_table::choose_best_splitting(uint, table_map, table_map*)’:
      sql/opt_split.cc:1043:5: warning: ‘best_param_tables’ may be used uninitialized [-Wmaybe-uninitialized]
       1043 |     if (!best_param_tables)
            |     ^~
      sql/opt_split.cc:966:13: note: ‘best_param_tables’ was declared here
        966 |   table_map best_param_tables;
            |             ^~~~~~~~~~~~~~~~~
      

      best_param_tables isn't initialized to 0 anyway, The only changes add bits to it.

      Attachments

        Issue Links

          Activity

            People

              danblack Daniel Black
              danblack Daniel Black
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.