mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-01-28 01:17:30 +01:00
tools/squashfs3-lzma: fix compilation with GCC15
Function pointers require proper types now.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18572
(cherry picked from commit d5c6452516)
Link: https://github.com/openwrt/openwrt/pull/18581
Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
parent
d9fccc8e1a
commit
a4fec25e24
1 changed files with 20 additions and 0 deletions
20
tools/squashfs3-lzma/patches/160-gcc15.patch
Normal file
20
tools/squashfs3-lzma/patches/160-gcc15.patch
Normal file
|
|
@ -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();
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue