ExcaliburHash icon indicating copy to clipboard operation
ExcaliburHash copied to clipboard

Issue building with gcc13

Open micwoj92 opened this issue 7 months ago • 1 comments

Hello, there is a build failure when using gcc13.

[ 58%] Building CXX object CMakeFiles/ExcaliburHashTest.dir/ExcaliburHashTest03.cpp.o
/home/micwoj92/pkg/ExcaliburHash/ExcaliburHashTest03.cpp: In member function ‘virtual void SmFlatHashMap_MoveEdgeCases_Test::TestBody()’:
/home/micwoj92/pkg/ExcaliburHash/ExcaliburHashTest03.cpp:488:16: error: moving ‘htHuge’ of type ‘Excalibur::HashTable<int, int>’ to itself [-Werror=self-move]
  488 |         htHuge = std::move(*&htHuge);
      |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/home/micwoj92/pkg/ExcaliburHash/ExcaliburHashTest03.cpp:488:16: note: remove ‘std::move’ call
cc1plus: all warnings being treated as errors

This is due to this -Wself-move warning being added https://gcc.gnu.org/PR81159

micwoj92 avatar Jan 10 '24 22:01 micwoj92