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

Build failure on MacOS on compiling the file lock/lock0lock.cc

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.6.0, 10.5
    • 10.5.9, 10.6.0
    • Compiling
    • None
    • compiler: Apple clang version 12.0.0 (clang-1200.0.32.21)

    Description

      Attempt to build MariaDB server on mac OS leads to compilation error:

      [ 61%] Building CXX object storage/innobase/CMakeFiles/innobase.dir/lock/lock0lock.cc.o
      /Users/shulga/projects/mariadb/server-10.5/storage/innobase/lock/lock0lock.cc:5035:23: error: loop variable
      'page_id' of type 'const page_id_t' creates a copy from type 'const page_id_t'
      [-Werror,-Wrange-loop-analysis]
      for (const page_id_t page_id : pages) {
      ^
      /Users/shulga/projects/mariadb/server-10.5/storage/innobase/lock/lock0lock.cc:5035:7: note: use reference
      type 'const page_id_t &' to prevent copying
      for (const page_id_t page_id : pages) {
      ^~~~~~~~~~~~~~~~~~~~~~~~~
      &
      1 error generated.

      Attachments

        Activity

          People

            shulga Dmitry Shulga
            shulga Dmitry Shulga
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.