From dfd41b9b9470a7f2a7a8f1f22afaba9afeb97ad3 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 24 Jan 2024 15:05:23 +0000 Subject: [PATCH] Fix Clang and GCC disagreeing about whether a move is needed. --- modules/extra/sqlite.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/extra/sqlite.cpp b/modules/extra/sqlite.cpp index a3d2f7757..b481093ca 100644 --- a/modules/extra/sqlite.cpp +++ b/modules/extra/sqlite.cpp @@ -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 SQLiteService::CreateTable(const Anope::string &table, const Data &data)