From ac6d0ae1b69cda26aa9486188d54c8c010f115c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Thu, 21 Sep 2023 18:36:20 +0200 Subject: [PATCH] Remove warnings about unused parameters (-Wunused-parameter) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use the GNU “unused” attribute (can be replaced by the standardized attribute when we move to C23). --- stat/dw_rand_gsl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stat/dw_rand_gsl.c b/stat/dw_rand_gsl.c index b1bf457..c0168fd 100644 --- a/stat/dw_rand_gsl.c +++ b/stat/dw_rand_gsl.c @@ -299,7 +299,7 @@ PRECISION dw_binomial_cdf(int x, PRECISION q, int n) /* Returns the integer x such that dw_binominal_cdf(x,p,n) is closest to p. */ -int dw_binominal_invcdf(PRECISION p, PRECISION q, int n) +int dw_binominal_invcdf(PRECISION p, __attribute__ ((unused)) PRECISION q, int n) { int min=0, max=n, mid=n/2; PRECISION pmin=0.0, pmax=1.0, pmid=dw_binomial_cdf(mid,p,n); -- GitLab