Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.6.0, 10.5
-
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.