libdynd: fix build with gcc9

This commit is contained in:
Franz Pletz 2019-11-02 19:46:49 +01:00
parent ee1cffd641
commit 2c3f93fe74
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

@ -16,13 +16,14 @@ stdenv.mkDerivation {
"-DDYND_BUILD_BENCHMARKS=OFF" "-DDYND_BUILD_BENCHMARKS=OFF"
]; ];
# added to fix build with gcc7 # added to fix build with gcc7+
NIX_CFLAGS_COMPILE = [ NIX_CFLAGS_COMPILE = [
"-Wno-error=implicit-fallthrough" "-Wno-error=implicit-fallthrough"
"-Wno-error=nonnull" "-Wno-error=nonnull"
"-Wno-error=tautological-compare" "-Wno-error=tautological-compare"
"-Wno-error=class-memaccess" "-Wno-error=class-memaccess"
"-Wno-error=parentheses" "-Wno-error=parentheses"
"-Wno-error=deprecated-copy"
]; ];
buildInputs = [ cmake ]; buildInputs = [ cmake ];