[openwrt/openwrt] tools/squashfs3-lzma: fix compilation with GCC15

LEDE Commits lede-commits at lists.infradead.org
Fri Apr 25 01:55:15 PDT 2025


robimarko pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/a4fec25e24dca9b3ab770eb2e523172ed0dbdc98

commit a4fec25e24dca9b3ab770eb2e523172ed0dbdc98
Author: Rosen Penev <rosenp at gmail.com>
AuthorDate: Tue Apr 22 19:09:56 2025 -0700

    tools/squashfs3-lzma: fix compilation with GCC15
    
    Function pointers require proper types now.
    
    Signed-off-by: Rosen Penev <rosenp at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/18572
    (cherry picked from commit d5c6452516fdc542696907e58543a549d834c630)
    Link: https://github.com/openwrt/openwrt/pull/18581
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 tools/squashfs3-lzma/patches/160-gcc15.patch | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/tools/squashfs3-lzma/patches/160-gcc15.patch b/tools/squashfs3-lzma/patches/160-gcc15.patch
new file mode 100644
index 0000000000..542fa52202
--- /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();
+ }




More information about the lede-commits mailing list