[Privoxy-commits] [privoxy] branch master updated: Fix a compiler warning emitted by clang 15.0.7
User Git
git at git.privoxy.org
Mon Jul 24 14:20:32 CEST 2023
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository privoxy.
The following commit(s) were added to refs/heads/master by this push:
new a826f7f3 Fix a compiler warning emitted by clang 15.0.7
a826f7f3 is described below
commit a826f7f394ba7a25aede5c3213cba385442c556d
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Tue Jul 11 06:05:40 2023 +0200
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.
---
filters.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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,
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Privoxy-commits
mailing list