diff --git a/include/rua/io/util.hpp b/include/rua/io/util.hpp index 4ce16f8..1efe784 100644 --- a/include/rua/io/util.hpp +++ b/include/rua/io/util.hpp @@ -265,7 +265,7 @@ class read_group : public stream_base { read_group(std::initializer_list r_li, size_t buf_sz = 1024) : read_group(buf_sz) { for (auto &r : r_li) { - add(std::move(r)); + add(r); } } diff --git a/include/rua/sync/promise.hpp b/include/rua/sync/promise.hpp index c9d5d36..9bb9700 100644 --- a/include/rua/sync/promise.hpp +++ b/include/rua/sync/promise.hpp @@ -81,6 +81,9 @@ class promise { notify(); break; } + + default: + break; } }