squashfs: Fix compile with GCC 10
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 24 May 2020 10:23:31 +0000 (12:23 +0200)
committerRISCi_ATOM <Bob@bobcall.me>
Sun, 24 May 2020 17:14:30 +0000 (17:14 +0000)
commite955607fee2023777dcef8fc20dbed728210d7df
tree1bb60ec5f5b434911f828008fcb9f0640ae179a0
parente07fda3ea0a7b35aa085846c982fddb4ded945cf
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]