squashfs: Fix compile with GCC 10
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 24 May 2020 10:23:31 +0000 (12:23 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 24 May 2020 12:43:25 +0000 (14:43 +0200)
commit6b1f2e6058aec4aeed6e359e719f8657babde0f3
tree48ddb562d4279fd01b1a4e8ce2ca4e7b98790a39
parent7b3ada8c6df8e0032acabd48ec8bff0d75643759
squashfs: Fix compile with GCC 10

Fixes the following build error with GCC 10:
/usr/bin/ld: read_fs.o:(.bss+0x0): multiple definition of `swap'; mksquashfs.o:(.bss+0x1b2a88): first defined here
And a compile warning.

Fixes: FS#3104, FS#3119
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 1bbc1aa884902fd05cc579b53d68b2ba0b18683f)
tools/squashfs/patches/140-gcc-10-fix.patch [new file with mode: 0644]