Skip to content

Commit

Permalink
mail-filter/imapfilter: fix build with -Werror=strict-prototypes
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/870682
Signed-off-by: Holger Hoffstätte <[email protected]>
Closes: gentoo#27304
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
hhoffstaette authored and thesamesam committed Sep 17, 2022
1 parent 6d8feea commit bebe48a
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
30 changes: 30 additions & 0 deletions mail-filter/imapfilter/files/2.7.6-prototypes.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

Patch from: https://github.com/lefcha/imapfilter/pull/257
Bug: https://bugs.gentoo.org/870682

From 9580bfca0d8a1cf92a79a24b9f1b83fd3b778375 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Holger=20Hoffst=C3=A4tte?= <[email protected]>
Date: Sat, 17 Sep 2022 13:42:30 +0200
Subject: [PATCH] Fix compilation failure with -Werror=strict-prototypes
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Holger Hoffstätte <[email protected]>
---
src/lua.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lua.c b/src/lua.c
index 868ddb7..02514bb 100644
--- a/src/lua.c
+++ b/src/lua.c
@@ -26,7 +26,7 @@ void interactive_mode(void);
* Lua interface functions, load and execute imapfilter's configuration file.
*/
void
-start_lua()
+start_lua(void)
{

lua = luaL_newstate();
4 changes: 4 additions & 0 deletions mail-filter/imapfilter/imapfilter-2.7.6.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ DEPEND="${RDEPEND}"

DOCS="AUTHORS NEWS README samples/*"

PATCHES=(
"${FILESDIR}/${PV}-prototypes.patch"
)

src_prepare() {
default
sed -i -e "/^PREFIX/s:/usr/local:${EPREFIX}/usr:" \
Expand Down

0 comments on commit bebe48a

Please sign in to comment.