Compiling with gcc 13.1.0:
../libs/compat/test/shared_lock_test.cpp: In function 'void {anonymous}::move_assignment()':
../libs/compat/test/shared_lock_test.cpp:378:10: error: moving 'lock' of type '{anonymous}::shared_lock_type' {aka 'boost::compat::shared_lock<dummy_lock>'} to itself [-Werror=self-move]
378 | lock = std::move( lock );
| ~~~~~^~~~~~~~~~~~~~~~~~~
../libs/compat/test/shared_lock_test.cpp:378:10: note: remove 'std::move' call
cc1plus: all warnings being treated as errors