diff --git a/ex-1/tests.c b/ex-1/tests.c index 52352cc..a8c8a94 100644 --- a/ex-1/tests.c +++ b/ex-1/tests.c @@ -95,7 +95,7 @@ double numeric_mode(double min, double max, double x = 0; int max_iter = 100; double prec = 1e-7; - int status; + int status = GSL_CONTINUE; const gsl_min_fminimizer_type *T = gsl_min_fminimizer_brent; gsl_min_fminimizer *s = gsl_min_fminimizer_alloc(T); gsl_min_fminimizer_set(s, &npdf, x, min, max);