mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
rocksdb: fix build of versions < 8
There is a code that triggers "unused-but-set-variable" warning (in versions 7.x and 6.x) which is promoted to error. There is another code that triggers "deprecated-copy" warning (in versions 6.x). This change prevents this promotion, so older versions of rocksdb build successfully again.
This commit is contained in:
parent
1095d8934b
commit
11e39b43a0
@ -48,6 +48,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
] ++ lib.optionals stdenv.cc.isClang [
|
||||
"-Wno-error=unused-private-field"
|
||||
"-faligned-allocation"
|
||||
] ++ lib.optionals (lib.versionOlder finalAttrs.version "8") [
|
||||
"-Wno-error=unused-but-set-variable"
|
||||
] ++ lib.optionals (lib.versionOlder finalAttrs.version "7") [
|
||||
"-Wno-error=deprecated-copy"
|
||||
]);
|
||||
|
||||
cmakeFlags = [
|
||||
|
Loading…
Reference in New Issue
Block a user