Skip to content

Issue building with gcc13 #2

@micwoj92

Description

@micwoj92

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions