forked from qt-creator/qt-creator
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: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
bbc5b87bdd
commit
f4545031f9
@@ -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,
|
|||||||
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) {
|
||||||
|
Reference in New Issue
Block a user