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

Clang won't compile MariaDB with libxml2 2.12

Details

    Description

      libxml2 2.12.0 made xmlGetLastError() return const pointer:

      https://gitlab.gnome.org/GNOME/libxml2/-/commit/61034116d0a3c8b295c6137956adc3ae55720711

      Clang 16 does not like this:

      error: assigning to 'xmlErrorPtr' (aka '_xmlError *') from 'const xmlError *' (aka 'const _xmlError *') discards qualifiers
      error: cannot initialize a variable of type 'xmlErrorPtr' (aka '_xmlError *') with an rvalue of type 'const xmlError *' (aka 'const _xmlError *')
      

      Attachments

        People

          TheLinuxJedi Andrew Hutchings (Inactive)
          TheLinuxJedi Andrew Hutchings (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.