From: Colin Clark Date: Fri, 2 Feb 2024 14:06:23 +0000 (+0000) Subject: clang-tidy: modernize-redundant-void-arg X-Git-Tag: v2.3~62 X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=9b7d1ced32204a086bb5b327c6afcb3f6d3799c9 clang-tidy: modernize-redundant-void-arg - Fix warnings identified by this flag - Remove the exclude from .clang-tidy file --- 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;