sasquatch: drop blanket -Werror (fix gcc-11 build) (#139350)

Noticed build failure on gcc-11:

    $ nix-build -E 'with import ./.{}; sasquatch.override { stdenv = gcc11Stdenv; }'
    unsquashfs.c:1908:5:
      error: this 'if' clause does not guard... [-Werror=misleading-indentation]
     1908 |     if(swap)
          |     ^~

Let's defer warning squashing and code fixes to upstream.
This commit is contained in:
Sergei Trofimovich 2021-09-26 04:46:57 +00:00 committed by GitHub
parent 92ad52c05e
commit 8d77e899e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,6 +43,9 @@ stdenv.mkDerivation rec {
patchFlags = [ "-p0" ];
postPatch = ''
# Drop blanket -Werror to avoid build failure on fresh toolchains
# like gcc-11.
substituteInPlace squashfs-tools/Makefile --replace ' -Werror' ' '
cd squashfs-tools
'';