Skip to content

Commit

Permalink
Avoid "set but not used" warnings w/o MASA
Browse files Browse the repository at this point in the history
  • Loading branch information
roystgnr committed Mar 7, 2018
1 parent f2fb9fc commit f1a0aba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contrib/metaphysicl/0.2.0/test/navier_unit.h
Expand Up @@ -142,6 +142,12 @@ int main(void)
vrnorm_max = std::max(vrnorm, vrnorm_max);
prnorm_max = std::max(prnorm, prnorm_max);
ernorm_max = std::max(ernorm, ernorm_max);
#else
// Avoid "set but not used" variable warnings;
(void) s2u;
(void) s2v;
(void) s2p;
(void) s2e;
#endif // METAPHYSICL_HAVE_MASA

}
Expand Down
6 changes: 6 additions & 0 deletions contrib/metaphysicl/0.2.0/test/pde_unit.h
Expand Up @@ -106,6 +106,12 @@ int main(void)
vrnorm_max = std::max(vrnorm, vrnorm_max);
prnorm_max = std::max(prnorm, prnorm_max);
ernorm_max = std::max(ernorm, ernorm_max);
#else
// Avoid "set but not used" variable warnings;
(void) s2u;
(void) s2v;
(void) s2p;
(void) s2e;
#endif // METAPHYSICL_HAVE_MASA

}
Expand Down

0 comments on commit f1a0aba

Please sign in to comment.