From: Rosen Penev Date: Wed, 23 Apr 2025 02:09:56 +0000 (-0700) Subject: tools/squashfs3-lzma: fix compilation with GCC15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F18572%2Fhead;p=thirdparty%2Fopenwrt.git tools/squashfs3-lzma: fix compilation with GCC15 Function pointers require proper types now. Signed-off-by: Rosen Penev Link: https://github.com/openwrt/openwrt/pull/18572 Signed-off-by: Robert Marko --- diff --git a/tools/squashfs3-lzma/patches/160-gcc15.patch b/tools/squashfs3-lzma/patches/160-gcc15.patch new file mode 100644 index 00000000000..542fa522024 --- /dev/null +++ b/tools/squashfs3-lzma/patches/160-gcc15.patch @@ -0,0 +1,20 @@ +--- a/squashfs-tools/mksquashfs.c ++++ b/squashfs-tools/mksquashfs.c +@@ -290,7 +290,7 @@ void restorefs() + } + + +-void sighandler() ++void sighandler(int i) + { + if(interrupted == 1) + restorefs(); +@@ -302,7 +302,7 @@ void sighandler() + } + + +-void sighandler2() ++void sighandler2(int i) + { + EXIT_MKSQUASHFS(); + }