forked from qt-creator/qt-creator
Fix warning about use of uninitialized values
Clang complains that these values may be used uninitialized if both conditions are false. This can actually not happen, so just initialize them to 0 to quiten up the compiler. Change-Id: I32530b974058e3484b5e7005717b7cd389cf7305 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -1688,7 +1688,7 @@ void WatchHandler::showEditValue(const WatchData &data)
|
||||
showSeparateWidget(l);
|
||||
m_model->m_editHandlers[key] = l;
|
||||
}
|
||||
int width, height, format;
|
||||
int width = 0, height = 0, format = 0;
|
||||
QByteArray ba;
|
||||
uchar *bits = 0;
|
||||
if (data.editformat == DisplayImageData) {
|
||||
|
||||
Reference in New Issue
Block a user