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:
Pavol Rusnak 2023-11-25 12:11:06 +01:00
parent 1095d8934b
commit 11e39b43a0
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -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 = [