forked from qt-creator/qt-creator
QmlJS: Fix compiler warning and add a missing include
qmljsdiagnosticmessage_p.h: In static member function ‘static QmlJS::Severity::Enum QmlJS::DiagnosticMessage::qtMsgTypeToKind(QtMsgType)’: qmljsdiagnosticmessage_p.h:72:5: warning: control reaches end of non-void function [-Wreturn-type] 72 | } | ^ Change-Id: I2183199bf257453e0af2998b739fae8c90f5c098 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
989eb36012
commit
e4dab6b83e
@@ -67,6 +67,7 @@ public:
|
|||||||
case QtFatalMsg:
|
case QtFatalMsg:
|
||||||
return Severity::Error;
|
return Severity::Error;
|
||||||
case QtInfoMsg:
|
case QtInfoMsg:
|
||||||
|
default:
|
||||||
return Severity::MaybeWarning;
|
return Severity::MaybeWarning;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -39,6 +39,7 @@
|
|||||||
#include <qmljs/qmljsmodelmanagerinterface.h>
|
#include <qmljs/qmljsmodelmanagerinterface.h>
|
||||||
#include <qmljs/parser/qmljsast_p.h>
|
#include <qmljs/parser/qmljsast_p.h>
|
||||||
#include <qmljs/parser/qmljsengine_p.h>
|
#include <qmljs/parser/qmljsengine_p.h>
|
||||||
|
#include <qmljs/parser/qmljssourcelocation_p.h>
|
||||||
|
|
||||||
#include <QtTest>
|
#include <QtTest>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
Reference in New Issue
Block a user