Treat missing returns as errors

This commit is contained in:
Rasmus Karlsson 2018-07-07 10:38:56 +00:00
parent 256aabf746
commit cada32edfd
2 changed files with 3 additions and 1 deletions

View file

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

View file

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