QNX: Silence compiler warning by initializing variable
qtbase/src/corelib/global/qlogging.cpp: In function 'void qDefaultMessageHandler(QtMsgType, const QMessageLogContext&, const QString&)': qtbase/src/corelib/global/qlogging.cpp:1555:11: warning: 'severity' may be used uninitialized in this function [-Wmaybe-uninitialized] slog2c(NULL, QT_LOG_CODE, severity, formattedMessage.toLocal8Bit().constData()); qtbase/src/corelib/global/qlogging.cpp:1535:9: note: 'severity' was declared here int severity; Pick-to: 6.2 6.3 5.15 Change-Id: Ic0d41a024056528cac51a88086ac7e492c94bb4a Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
e391022d9c
commit
f1d521f076
@ -1532,7 +1532,7 @@ static bool slog2_default_handler(QtMsgType type, const QMessageLogContext &cont
|
||||
// Set as the default buffer
|
||||
slog2_set_default_buffer(buffer_handle);
|
||||
}
|
||||
int severity;
|
||||
int severity = SLOG2_INFO;
|
||||
//Determines the severity level
|
||||
switch (type) {
|
||||
case QtDebugMsg:
|
||||
|
Loading…
Reference in New Issue
Block a user