mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-22 13:30:06 +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')
|
if (!allowNewlines && c == '\n')
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (c >= ' ' && c <= '~' || c == '\n')
|
if ((c >= ' ' && c <= '~') || c == '\n')
|
||||||
buf[i++] = c;
|
buf[i++] = c;
|
||||||
}
|
}
|
||||||
buf[i] = 0;
|
buf[i] = 0;
|
||||||
|
@ -183,7 +183,7 @@ void Database::createTables() {
|
|||||||
std::lock_guard<std::mutex> lock(dbCrit);
|
std::lock_guard<std::mutex> lock(dbCrit);
|
||||||
|
|
||||||
char* errMsg = 0;
|
char* errMsg = 0;
|
||||||
char* sql;
|
const char* sql;
|
||||||
|
|
||||||
sql = R"(
|
sql = R"(
|
||||||
CREATE TABLE IF NOT EXISTS "Accounts" (
|
CREATE TABLE IF NOT EXISTS "Accounts" (
|
||||||
|
Loading…
Reference in New Issue
Block a user