Skip to content

Commit 71a9694

Browse files
committed
Suppress warning in linkern
1 parent acc9d7d commit 71a9694

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/tsp/heur/linkern/linkern.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,10 @@ tsp_opt_heur_linkern(tsp_prob *tsp, tsp_heur_linkern_env *lk_env, tsp_sol *sol)
182182

183183
if (map->img_n < 10 && lk_param->nkicks > 0)
184184
{
185-
printf("Less than 10 nodes, setting repeatcount to 0\n");
185+
if (lk_env->verbosity >= SOLVER_VERBOSITY_INFO)
186+
{
187+
printf("Less than 10 nodes, setting repeatcount to 0\n");
188+
}
186189
nkicks_old = lk_param->nkicks;
187190
lk_param->nkicks = 0;
188191
}

0 commit comments

Comments
 (0)