summaryrefslogtreecommitdiff
path: root/modules/extra/sqlite.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-01-24 15:05:23 +0000
committerSadie Powell <sadie@witchery.services>2024-01-24 16:12:29 +0000
commitdfd41b9b9470a7f2a7a8f1f22afaba9afeb97ad3 (patch)
treec18fc41a86e6b703e4523f7b0ae76e42a31890a7 /modules/extra/sqlite.cpp
parentfdd4aade3b54dc4c58d645ecc609da7cc927bb25 (diff)
Fix Clang and GCC disagreeing about whether a move is needed.
Diffstat (limited to 'modules/extra/sqlite.cpp')
-rw-r--r--modules/extra/sqlite.cpp5
1 files changed, 5 insertions, 0 deletions
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<Query> SQLiteService::CreateTable(const Anope::string &table, const Data &data)