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-
uninitialized]

I know it doesn't make sense...

Change-Id: I26239fc58ea238f835cc88501e89e682ad402e85
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent bbc5b87b
...@@ -171,7 +171,7 @@ void QnxSettingsWidget::populateConfigsCombo() ...@@ -171,7 +171,7 @@ void QnxSettingsWidget::populateConfigsCombo()
void QnxSettingsWidget::setConfigState(QnxConfiguration *config, void QnxSettingsWidget::setConfigState(QnxConfiguration *config,
QnxSettingsWidget::State state) QnxSettingsWidget::State state)
{ {
QnxSettingsWidget::State stateToRemove; QnxSettingsWidget::State stateToRemove = QnxSettingsWidget::Activated;
switch (state) { switch (state) {
case QnxSettingsWidget::Added : case QnxSettingsWidget::Added :
stateToRemove = QnxSettingsWidget::Removed; stateToRemove = QnxSettingsWidget::Removed;
...@@ -184,6 +184,7 @@ void QnxSettingsWidget::setConfigState(QnxConfiguration *config, ...@@ -184,6 +184,7 @@ void QnxSettingsWidget::setConfigState(QnxConfiguration *config,
break; break;
case QnxSettingsWidget::Deactivated: case QnxSettingsWidget::Deactivated:
stateToRemove = QnxSettingsWidget::Activated; stateToRemove = QnxSettingsWidget::Activated;
break;
} }
foreach (const ConfigState &configState, m_changedConfigs) { 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