[PATCH nixpkgs v2 5/8] chromiumOSPackages.common-mk: disable clang-only warnings

Alyssa Ross
2021-05-29T14:42:58Z

Tested-by: Alyssa Ross <hi@alyssa.is>
---
pkgs/os-specific/linux/chromium-os/common-mk/default.nix | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/pkgs/os-specific/linux/chromium-os/common-mk/default.nix b/pkgs/os-specific/linux/chromium-os/common-mk/default.nix
index cc72aab5d15..d617401138f 100644
--- a/pkgs/os-specific/linux/chromium-os/common-mk/default.nix
+++ b/pkgs/os-specific/linux/chromium-os/common-mk/default.nix
@@ -64,7 +64,11 @@ stdenv.mkDerivation ({
patchShebangs common-mk
'' + (lib.optionalString (!stdenv.cc.isClang) ''
substituteInPlace common-mk/BUILD.gn \
- --replace '"-Wno-c99-designator",' ""
+ --replace '"-Wno-c99-designator",' "" \
+ --replace '"-Wstring-compare",' "" \
+ --replace '"-Wstring-plus-int",' "" \
+ --replace '"-Wxor-used-as-pow",' "" \
+ --replace '"-Wunreachable-code-return",' ""
'') + postPatch;

nativeBuildInputs = [ gn pkgconfig python3 ninja ] ++ nativeBuildInputs;
--
2.31.1