From af7f0b5074ee5d53c0fd16cf22522bdc930b9cc0 Mon Sep 17 00:00:00 2001 From: Tom Ritchford Date: Tue, 30 Sep 2014 10:37:33 -0400 Subject: [PATCH] Fix compiler warnings under gcc. --- beast/module/sqdb/source/session.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/beast/module/sqdb/source/session.cpp b/beast/module/sqdb/source/session.cpp index 1e14d16c34..39f0777aad 100644 --- a/beast/module/sqdb/source/session.cpp +++ b/beast/module/sqdb/source/session.cpp @@ -15,7 +15,7 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - Portions based on SOCI - The C++ Database Access Library: + Portions based on SOCI - The C++ Database Access Library: SOCI: http://soci.sourceforge.net/ @@ -67,10 +67,7 @@ class session::Sqlite3 public: Sqlite3() { - int threadSafe = sqlite3_threadsafe(); - - assert (threadSafe != 0); - + assert (sqlite3_threadsafe() != 0); sqlite3_initialize(); }