mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-05 06:50:04 +00:00
Shut up warnings
This commit is contained in:
parent
166bfdfc4f
commit
94b7864b02
@ -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;
|
||||
|
@ -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" (
|
||||
|
Loading…
Reference in New Issue
Block a user