From f7a0a8d931fc63e9d7672a2f4cf2217f8208913d Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Thu, 1 Feb 2018 11:18:33 +0100 Subject: [PATCH] fix(DbSession): do not use L_ASSERT(false) if soci is not enabled in checkTableExists --- src/db/session/db-session.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/db/session/db-session.cpp b/src/db/session/db-session.cpp index 845b933f5..6c2fda1cc 100644 --- a/src/db/session/db-session.cpp +++ b/src/db/session/db-session.cpp @@ -194,9 +194,10 @@ bool DbSession::checkTableExists (const string &table) const { case DbSessionPrivate::Backend::None: return false; } + L_ASSERT(false); #endif // ifdef SOCI_ENABLED - L_ASSERT(false); + (void)table; return false; }