From 94b7864b028c77cb273300d2cdcfa9ce6f3ac165 Mon Sep 17 00:00:00 2001 From: Gent S Date: Sun, 13 Dec 2020 20:52:59 -0500 Subject: [PATCH] Shut up warnings --- src/ChatManager.cpp | 2 +- src/Database.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ChatManager.cpp b/src/ChatManager.cpp index c2b6941..6bd104e 100644 --- a/src/ChatManager.cpp +++ b/src/ChatManager.cpp @@ -936,7 +936,7 @@ std::string ChatManager::sanitizeText(std::string text, bool allowNewlines) { if (!allowNewlines && c == '\n') continue; - if (c >= ' ' && c <= '~' || c == '\n') + if ((c >= ' ' && c <= '~') || c == '\n') buf[i++] = c; } buf[i] = 0; diff --git a/src/Database.cpp b/src/Database.cpp index 5d1f58c..591aeb1 100644 --- a/src/Database.cpp +++ b/src/Database.cpp @@ -183,7 +183,7 @@ void Database::createTables() { std::lock_guard lock(dbCrit); char* errMsg = 0; - char* sql; + const char* sql; sql = R"( CREATE TABLE IF NOT EXISTS "Accounts" (