]> https://gitweb.dealii.org/ - dealii.git/commitdiff
modernize-redundant-void-arg
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 15 Jan 2019 16:58:28 +0000 (17:58 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 19 Jan 2019 22:37:44 +0000 (23:37 +0100)
contrib/utilities/run_clang_tidy.sh
source/lac/petsc_matrix_free.cc
tests/quick_tests/adolc.cc

index e466013956c92b62d0a4939bfaa701f59cbddf54..fb8ec7ed788337c71ff5b4ce9a62d5b69ca06663 100755 (executable)
@@ -50,6 +50,7 @@ CHECKS="-*,
         cppcoreguidelines-pro-type-static-cast-downcast,
         google-readability-casting,
         modernize-deprecated-headers,
+        modernize-redundant-void-arg,
         modernize-use-emplace,
         modernize-use-nullptr,
         modernize-use-using,
index 6223ce3b2b67ef24303f9cc48b53645c540b1915..2cd16d28b691b73f546690d3eb38caeaec322326 100644 (file)
@@ -240,7 +240,7 @@ namespace PETScWrappers
     ierr = MatShellSetOperation(
       matrix,
       MATOP_MULT,
-      reinterpret_cast<void (*)(void)>(
+      reinterpret_cast<void (*)()>(
         &dealii::PETScWrappers::MatrixFree::matrix_free_mult));
     AssertThrow(ierr == 0, ExcPETScError(ierr));
 
index 7fa5b9290e9b25a1063898832dd6b6a39692f572..3705235ecc956dda887ae36c94ce99c5b61a9953 100644 (file)
@@ -30,7 +30,7 @@
 using namespace dealii;
 
 int
-main(void)
+main()
 {
   const double       tol = 1e-12;
   const unsigned int n   = 10;

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.