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.
main
Sergei Trofimovich 3 years ago committed by GitHub
parent 92ad52c05e
commit 8d77e899e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      pkgs/tools/filesystems/sasquatch/default.nix

@ -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
'';

Loading…
Cancel
Save