test/rocksdb: fix db_bench build with gcc9
GCC9 complains:
./db/version_edit.h:134:71: error: implicitly-declared "constexpr
rocksdb::FileDescriptor::FileDescriptor(const
rocksdb::FileDescriptor&)" is deprecated [-Werror=deprecated-copy]
From what I see this can be fixed by explicitly
defining some constructors and assignment operators,
even setting them to `= default;`. I didn't dig into
this further, just ignore the warning for now.
Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1082 (master)
(cherry picked from commit a5bcbbefcb
)
Change-Id: Ia0ee0cc5fc1dce36f7098959d383b08855a825df
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1286
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
This commit is contained in:
parent
cc02904e82
commit
02dda9731a
@ -45,7 +45,14 @@ pushd $DB_BENCH_DIR
|
||||
if [ -z "$SKIP_GIT_CLEAN" ]; then
|
||||
git clean -x -f -d
|
||||
fi
|
||||
$MAKE db_bench $MAKEFLAGS $MAKECONFIG DEBUG_LEVEL=0 SPDK_DIR=$rootdir
|
||||
|
||||
EXTRA_CXXFLAGS=""
|
||||
GCC_VERSION=$(cc -dumpversion | cut -d. -f1)
|
||||
if (( GCC_VERSION >= 9 )); then
|
||||
EXTRA_CXXFLAGS+="-Wno-deprecated-copy -Wno-pessimizing-move"
|
||||
fi
|
||||
|
||||
$MAKE db_bench $MAKEFLAGS $MAKECONFIG DEBUG_LEVEL=0 SPDK_DIR=$rootdir EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS"
|
||||
popd
|
||||
|
||||
timing_exit db_bench_build
|
||||
|
Loading…
Reference in New Issue
Block a user