Skip to content

Commit

Permalink
devel/libinjection: Fix build on 14-CURRENT
Browse files Browse the repository at this point in the history
libinjection_sqli.c:1200:33: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
const char* libinjection_version()
                                ^
                                 void
1 error generated.

Reference:	https://pkg-status.freebsd.org/beefy18/data/main-amd64-default/pdf5b273c8e36_s83d5725005/logs/libinjection-3.10.0_1.log
  • Loading branch information
sunpoet committed May 2, 2023
1 parent 7950bb0 commit dd6d333
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions devel/libinjection/files/patch-libinjection_sqli.c
@@ -0,0 +1,11 @@
--- libinjection_sqli.c.orig 2017-05-21 20:44:26 UTC
+++ libinjection_sqli.c
@@ -1197,7 +1197,7 @@ static size_t parse_number(struct libinjection_sqli_st
* without having to regenerated the SWIG (or other binding) in minor
* releases.
*/
-const char* libinjection_version()
+const char* libinjection_version(void)
{
return LIBINJECTION_VERSION;
}

0 comments on commit dd6d333

Please sign in to comment.