]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Quick tests: avoid -Wunused-variable
authorMatthias Maier <tamiko@43-1.org>
Wed, 5 Jul 2023 02:36:17 +0000 (21:36 -0500)
committerMatthias Maier <tamiko@43-1.org>
Sat, 8 Jul 2023 04:43:44 +0000 (23:43 -0500)
tests/quick_tests/adolc.cc
tests/quick_tests/gmsh.cc

index a887740eee7d34f8f2c6e38090e015ff0ff76dff..738f384c414828d5164feadb7b1ad4930c39260c 100644 (file)
@@ -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!"));
 
index ae6457ef6f2ccc72f856981051b85510378facaa..ede9e20349b5af3c74c81041d6bbef305031c4d1 100644 (file)
@@ -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");

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.