Skip to content

Commit 47489c6

Browse files
committed
initialize variable to avoid maybe-uninitialized warning
- from looking at the code, the variable would always be initialized when used, though
1 parent 384bf84 commit 47489c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

highs/lp_data/HighsSolution.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ void getKktFailures(const HighsOptions& options, const bool is_qp,
199199
double primal_infeasibility;
200200
double relative_primal_infeasibility;
201201
double dual_infeasibility;
202-
double cost;
202+
double cost = 0.0;
203203
double lower;
204204
double upper;
205205
double value;

0 commit comments

Comments
 (0)