Suppress warnings about unused parameters.

This commit is contained in:
Bård Skaflestad 2011-09-10 16:48:31 +02:00
parent 70a9e8a7a8
commit 82a51172b7
2 changed files with 10 additions and 0 deletions

View File

@ -748,6 +748,9 @@ compute_fpress(grid_t *G,
{
int c, i, f, c1, c2;
/* Suppress warning about unused parameters. */
(void) np; (void) pmobf; (void) gravcap_f; (void) fflux;
/*
* Define face pressures as weighted average of connecting cell
* pressures. Specifically, we define
@ -1228,6 +1231,9 @@ cfs_tpfa_expl_mass_transport(grid_t *G,
const double *masstrans_f, *gravtrans_f, *masstrans_p, *gravtrans_p;
const double *cpress, *wpress;
/* Suppress warning about unused parameter. */
(void) wdata;
masstrans_f = h->pimpl->masstrans_f;
gravtrans_f = h->pimpl->gravtrans_f;
masstrans_p = h->pimpl->masstrans_p;

View File

@ -161,6 +161,10 @@ mim_ip_linpress_exact(int nf, int nconn, int d,
double a1, a2, t;
assert (lwork >= d * nf);
#if defined(NDEBUG)
/* Suppress warning about unused parameter. */
(void) lwork;
#endif
t = 0.0;
for (i = 0; i < d; i++) {