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:40:49 +0000 (14:40 +0200)
commit059db419d7dfbf8e27c49b1f6b88e8170d659088
tree72efd6e64585b81dd612d5cd0ac0867c0b9f0a5d
parent97b522a1f92badddaaed12ede5a3a026e8007c74
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]