From: Fabian Keil Date: Tue, 11 Jul 2023 04:05:40 +0000 (+0200) Subject: Fix a compiler warning emitted by clang 15.0.7 X-Git-Url: http://www.privoxy.org/gitweb/socket.png?a=commitdiff_plain;h=a826f7f394ba7a25aede5c3213cba385442c556d;p=privoxy.git Fix a compiler warning emitted by clang 15.0.7 Silences: filters.c:2561:58: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] content = (content_filter != NULL) ? (*content_filter)(csp) : NULL; ^ 1 warning generated. --- diff --git a/filters.c b/filters.c index 21ee44d5..35c8476f 100644 --- a/filters.c +++ b/filters.c @@ -74,7 +74,7 @@ #include "win32.h" #endif -typedef char *(*filter_function_ptr)(); +typedef char *(*filter_function_ptr)(struct client_state *csp); static filter_function_ptr get_filter_function(const struct client_state *csp); static jb_err prepare_for_filtering(struct client_state *csp); static void apply_url_actions(struct current_action_spec *action,