Shut up warnings

This commit is contained in:
Gent S 2020-12-13 20:52:59 -05:00
parent 166bfdfc4f
commit 94b7864b02
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -183,7 +183,7 @@ void Database::createTables() {
std::lock_guard<std::mutex> lock(dbCrit);
char* errMsg = 0;
char* sql;
const char* sql;
sql = R"(
CREATE TABLE IF NOT EXISTS "Accounts" (