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

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.5, 10.6.0
    • Fix Version/s: 10.5.9, 10.6.0
    • Component/s: Compiling
    • Labels:
      None
    • Environment:
      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

            Assignee:
            shulga Dmitry Shulga
            Reporter:
            shulga Dmitry Shulga
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: