From 255f9fb372ca82ebd156d4983bbb6428f84b03ae Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Wed, 6 Feb 2013 14:45:15 +0100 Subject: [PATCH] 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 --- src/plugins/debugger/watchhandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp index 219bb8b2c06..e56a295897f 100644 --- a/src/plugins/debugger/watchhandler.cpp +++ b/src/plugins/debugger/watchhandler.cpp @@ -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) {