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
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue