1
0
mirror of https://github.com/anope/anope.git synced 2026-06-24 18:26:37 +02:00

Fix Clang and GCC disagreeing about whether a move is needed.

This commit is contained in:
Sadie Powell
2024-01-24 15:05:23 +00:00
parent fdd4aade3b
commit dfd41b9b94
+5
View File
@@ -203,7 +203,12 @@ Result SQLiteService::RunQuery(const Query &query)
if (err != SQLITE_DONE)
return SQLiteResult(query, real_query, sqlite3_errmsg(this->sql));
// GCC and clang disagree about whether this should be a move >:(
#ifdef __clang__
return std::move(result);
#else
return result;
#endif
}
std::vector<Query> SQLiteService::CreateTable(const Anope::string &table, const Data &data)