gcc compiler warnings

This commit is contained in:
James Cherry 2021-02-06 22:59:57 +00:00
parent d8fbbc9e2a
commit e3d60f0b8c
2 changed files with 6 additions and 0 deletions

View File

@ -186,6 +186,9 @@ InternalPowerModel::findAxisValues(float in_slew,
axis_value3 = axisValue(model_->axis3(), in_slew, load_cap);
break;
default:
axis_value1 = 0.0;
axis_value2 = 0.0;
axis_value3 = 0.0;
criticalError(229, "unsupported table order");
}
}

View File

@ -242,6 +242,9 @@ GateTableModel::findAxisValues(const TableModel *model,
related_out_cap);
break;
default:
axis_value1 = 0.0;
axis_value2 = 0.0;
axis_value3 = 0.0;
criticalError(239, "unsupported table order");
}
}