From 574727b2cdc4bee0f47add70c1b08ef85ef7737a Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 2 Dec 2021 18:00:22 -0800 Subject: [PATCH] xinit_params: squash -Wunused-parameter warnings This parameter cannot be removed because it _is_ used when `DEBUG` is defined. --- lib/fdpgen/xlayout.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/fdpgen/xlayout.c b/lib/fdpgen/xlayout.c index 6cc1a16f5..dc1ee641d 100644 --- a/lib/fdpgen/xlayout.c +++ b/lib/fdpgen/xlayout.c @@ -74,6 +74,8 @@ static double RAD(Agnode_t * n) */ static void xinit_params(graph_t* g, int n, xparams * xpms) { + (void)g; + xParams.K = xpms->K; xParams.numIters = xpms->numIters; xParams.T0 = xpms->T0; -- 2.40.0