From dbd63682b1a1fae77435e6f1fa50e2b1f839ab72 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Tue, 15 Jan 2019 17:58:28 +0100 Subject: [PATCH] modernize-redundant-void-arg --- contrib/utilities/run_clang_tidy.sh | 1 + source/lac/petsc_matrix_free.cc | 2 +- tests/quick_tests/adolc.cc | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/utilities/run_clang_tidy.sh b/contrib/utilities/run_clang_tidy.sh index e466013956..fb8ec7ed78 100755 --- a/contrib/utilities/run_clang_tidy.sh +++ b/contrib/utilities/run_clang_tidy.sh @@ -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, diff --git a/source/lac/petsc_matrix_free.cc b/source/lac/petsc_matrix_free.cc index 6223ce3b2b..2cd16d28b6 100644 --- a/source/lac/petsc_matrix_free.cc +++ b/source/lac/petsc_matrix_free.cc @@ -240,7 +240,7 @@ namespace PETScWrappers ierr = MatShellSetOperation( matrix, MATOP_MULT, - reinterpret_cast( + reinterpret_cast( &dealii::PETScWrappers::MatrixFree::matrix_free_mult)); AssertThrow(ierr == 0, ExcPETScError(ierr)); diff --git a/tests/quick_tests/adolc.cc b/tests/quick_tests/adolc.cc index 7fa5b9290e..3705235ecc 100644 --- a/tests/quick_tests/adolc.cc +++ b/tests/quick_tests/adolc.cc @@ -30,7 +30,7 @@ using namespace dealii; int -main(void) +main() { const double tol = 1e-12; const unsigned int n = 10; -- 2.39.5