Commit f4545031 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

Qnx: Fix GCC 5.2.1 warning in release build

warning: 'stateToRemove' may be used uninitialized in this function [-Wmaybe-

I know it doesn't make sense...

Change-Id: I26239fc58ea238f835cc88501e89e682ad402e85
Reviewed-by: default avatarTobias Hunger <>
parent bbc5b87b
......@@ -171,7 +171,7 @@ void QnxSettingsWidget::populateConfigsCombo()
void QnxSettingsWidget::setConfigState(QnxConfiguration *config,
QnxSettingsWidget::State state)
QnxSettingsWidget::State stateToRemove;
QnxSettingsWidget::State stateToRemove = QnxSettingsWidget::Activated;
switch (state) {
case QnxSettingsWidget::Added :
stateToRemove = QnxSettingsWidget::Removed;
......@@ -184,6 +184,7 @@ void QnxSettingsWidget::setConfigState(QnxConfiguration *config,
case QnxSettingsWidget::Deactivated:
stateToRemove = QnxSettingsWidget::Activated;
foreach (const ConfigState &configState, m_changedConfigs) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment