From: Matthias Maier Date: Wed, 5 Jul 2023 02:36:17 +0000 (-0500) Subject: Quick tests: avoid -Wunused-variable X-Git-Tag: relicensing~716^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36ed5f589784b37cced0b59a8b120a6ffabc96a1;p=dealii.git Quick tests: avoid -Wunused-variable --- diff --git a/tests/quick_tests/adolc.cc b/tests/quick_tests/adolc.cc index a887740eee..738f384c41 100644 --- a/tests/quick_tests/adolc.cc +++ b/tests/quick_tests/adolc.cc @@ -64,6 +64,7 @@ main() deallog << "Error (function 1): " << error_func_1 << std::endl; deallog << "Error (function 2): " << error_func_2 << std::endl; + (void)tol; Assert(error_func_1 < tol, ExcMessage("Should be zero!")); Assert(error_func_2 < tol, ExcMessage("Should be zero!")); diff --git a/tests/quick_tests/gmsh.cc b/tests/quick_tests/gmsh.cc index ae6457ef6f..ede9e20349 100644 --- a/tests/quick_tests/gmsh.cc +++ b/tests/quick_tests/gmsh.cc @@ -51,6 +51,7 @@ main() const int ierr = std::system(DEAL_II_GMSH_EXECUTABLE_PATH " -2 file.geo 1>file.log 2>file_warn.log"); + (void)ierr; Assert(ierr == 0, dealii::ExcInternalError()); std::remove("file.geo");