From 36ed5f589784b37cced0b59a8b120a6ffabc96a1 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Tue, 4 Jul 2023 21:36:17 -0500 Subject: [PATCH] Quick tests: avoid -Wunused-variable --- tests/quick_tests/adolc.cc | 1 + tests/quick_tests/gmsh.cc | 1 + 2 files changed, 2 insertions(+) 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"); -- 2.39.5