mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Removed compiler warnings on linux as well. Now there are (nearly)only ERT warnings left.
p4#: 20238
This commit is contained in:
@@ -312,13 +312,12 @@ void ProgressInfoStatic::setProgress(size_t progressValue)
|
||||
if (progressValue == progressStack().back()) return; // Do nothing if no progress.
|
||||
|
||||
// Guard against the max value set for this level
|
||||
if (progressValue < 0 ) progressValue = 0;
|
||||
if (progressValue > maxProgressStack().back() ) progressValue = maxProgressStack().back();
|
||||
|
||||
progressStack().back() = progressValue;
|
||||
progressSpanStack().back() = 1;
|
||||
|
||||
assert(currentTotalProgress() <= progressDialog()->maximum());
|
||||
assert(static_cast<int>(currentTotalProgress()) <= progressDialog()->maximum());
|
||||
size_t totProg = currentTotalProgress();
|
||||
|
||||
progressDialog()->setMaximum(static_cast<int>(currentTotalMaxProgressValue()));
|
||||
|
||||
Reference in New Issue
Block a user