mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Treat missing returns as errors
This commit is contained in:
parent
256aabf746
commit
cada32edfd
|
@ -446,6 +446,8 @@ win32-msvc* {
|
|||
# Disabling strict-aliasing warnings for now, although we probably want to re-enable this in the future
|
||||
QMAKE_CXXFLAGS_WARN_ON += -Wno-strict-aliasing
|
||||
|
||||
QMAKE_CXXFLAGS_WARN_ON += -Werror=return-type
|
||||
|
||||
equals(QMAKE_CXX, "clang++") {
|
||||
QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-local-typedef
|
||||
} else {
|
||||
|
|
|
@ -153,7 +153,7 @@ void TwitchChannel::sendMessage(const QString &message)
|
|||
// Do last message processing
|
||||
QString parsedMessage = app->emotes->emojis.replaceShortCodes(message);
|
||||
|
||||
parsedMessage = parsedMessage.trimmed();
|
||||
parsedMessage.trim();
|
||||
|
||||
if (parsedMessage.isEmpty()) {
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue