mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Suppress warnings about unused parameters.
This commit is contained in:
parent
70a9e8a7a8
commit
82a51172b7
@ -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;
|
||||
|
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user