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

Fix compiler warnings on wsrep_mysqld.cc

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • 10.4
    • N/A
    • Galera
    • None

    Description

      sql/wsrep_mysqld.cc:1897:9: warning: variable 'ret' is used
            uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
          if (thd->is_error() && !wsrep_must_ignore_error(thd))
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      sql/wsrep_mysqld.cc:1908:9: note: uninitialized use occurs here
          if (ret == 0)
              ^~~
      sql/wsrep_mysqld.cc:1897:5: note: remove the 'if' if its
            condition is always false
          if (thd->is_error() && !wsrep_must_ignore_error(thd))
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      

      Attachments

        Activity

          People

            jplindst Jan Lindström (Inactive)
            jplindst Jan Lindström (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.