Unverified Commit 11e39b43 authored by Pavol Rusnak's avatar Pavol Rusnak
Browse files

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.
parent 1095d893
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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 = [