From 9b7d1ced32204a086bb5b327c6afcb3f6d3799c9 Mon Sep 17 00:00:00 2001 From: Colin Clark Date: Fri, 2 Feb 2024 14:06:23 +0000 Subject: [PATCH] clang-tidy: modernize-redundant-void-arg - Fix warnings identified by this flag - Remove the exclude from .clang-tidy file --- .clang-tidy | 1 - src/main.cc | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index cbe7bd13..2e576602 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -47,7 +47,6 @@ Checks: > -modernize-avoid-c-arrays, -modernize-macro-to-enum, -modernize-raw-string-literal, - -modernize-redundant-void-arg, -modernize-use-auto, -modernize-use-trailing-return-type, -modernize-use-using, diff --git a/src/main.cc b/src/main.cc index 3a9c6326..9553a61c 100644 --- a/src/main.cc +++ b/src/main.cc @@ -1174,7 +1174,7 @@ static void sigbus_handler_cb_unused(int, siginfo_t *info, void *) } #endif -static void setup_sigbus_handler_unused(void) +static void setup_sigbus_handler_unused() { #if defined(SIGBUS) && defined(SA_SIGINFO) struct sigaction sigbus_action; -- 2.20.1