the preprocessor command #warning is not standard.

use #pragma message WARN("xD") to make it work on gcc and msvc
This commit is contained in:
Rasmus Karlsson
2017-01-05 16:42:26 +01:00
parent e68f885dff
commit 7262c11458
5 changed files with 23 additions and 5 deletions
+2 -2
View File
@@ -208,7 +208,7 @@ void IrcManager::addIgnoredUser(QString const &username)
{
QString errorMessage;
if (!tryAddIgnoredUser(username, errorMessage)) {
#warning "xD"
#pragma message WARN("Implement IrcManager::addIgnoredUser")
}
}
@@ -241,6 +241,6 @@ void IrcManager::removeIgnoredUser(QString const &username)
{
QString errorMessage;
if (!tryRemoveIgnoredUser(username, errorMessage)) {
#warning "xD"
#pragma message WARN("TODO: Implement IrcManager::removeIgnoredUser")
}
}