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

'key_part_end' may be used uninitialized [-Werror=maybe-uninitialized]

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Trivial
    • Resolution: Unresolved
    • 10.11
    • 11.4, 11.8, 12.3
    • Plugins, Server
    • None
    • gcc (Ubuntu 15.2.0-16ubuntu1) 15.2.0
    • Related to install and upgrade

    Description

      Commit 1500fc6839:

      /path/to/src/sql/table.cc: In function 'bool create_key_infos(const uchar*, const uchar*, uint, KEY*, uint, uint*, TABLE_SHARE*, uint, KEY*, LEX_STRING*)':
      /path/to/src/sql/table.cc:923:3: error: 'key_part_end' may be used uninitialized [-Werror=maybe-uninitialized]
        923 |   if (key_part > key_part_end)
            |   ^~
      /path/to/src/sql/table.cc:771:41: note: 'key_part_end' was declared here
        771 |   KEY_PART_INFO *first_key_part= NULL, *key_part_end;
            |                                         ^~~~~~~~~~~~
      

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              ParadoxV5 Jimmy Hú
              Oleksandr Byelkin Oleksandr Byelkin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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