diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2019-04-29 21:28:43 -0400 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2019-04-29 21:34:24 -0400 |
commit | 74c784a79c6908c14c0c13d6c34db93d9a4d2c8d (patch) | |
tree | 1c1fce1416da69c98964f4495d47dcff30ed171b /pkgs/tools/networking | |
parent | 84a15876a3a9f92b6ba53a7ac18a7fd96f405bf9 (diff) | |
download | nixlib-74c784a79c6908c14c0c13d6c34db93d9a4d2c8d.tar nixlib-74c784a79c6908c14c0c13d6c34db93d9a4d2c8d.tar.gz nixlib-74c784a79c6908c14c0c13d6c34db93d9a4d2c8d.tar.bz2 nixlib-74c784a79c6908c14c0c13d6c34db93d9a4d2c8d.tar.lz nixlib-74c784a79c6908c14c0c13d6c34db93d9a4d2c8d.tar.xz nixlib-74c784a79c6908c14c0c13d6c34db93d9a4d2c8d.tar.zst nixlib-74c784a79c6908c14c0c13d6c34db93d9a4d2c8d.zip |
treewide: make -Wno-error flags clang-only
In 724e833ea2a, I was a little too aggressive in enabling these flags. Many don’t work in gcc, and we should probably avoid settings them widely. This makes those flags optional on isclang
Diffstat (limited to 'pkgs/tools/networking')
-rw-r--r-- | pkgs/tools/networking/ntopng/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/tools/networking/ntopng/default.nix b/pkgs/tools/networking/ntopng/default.nix index b1e1bfcdd65e..06d28e844ff3 100644 --- a/pkgs/tools/networking/ntopng/default.nix +++ b/pkgs/tools/networking/ntopng/default.nix @@ -53,7 +53,8 @@ stdenv.mkDerivation rec { sed 's|LIBS += -lstdc++.6||' -i Makefile ''; - NIX_CFLAGS_COMPILE = [ "-fpermissive" "-Wno-error=reserved-user-defined-literal" ]; + NIX_CFLAGS_COMPILE = [ "-fpermissive" ] + ++ stdenv.lib.optional stdenv.cc.isClang "-Wno-error=reserved-user-defined-literal"; meta = with stdenv.lib; { description = "High-speed web-based traffic analysis and flow collection tool"; |