rocksdb
rocksdb copied to clipboard
build v7.10.2 failed with gcc 11/12
Expected behavior
build ok
Actual behavior
errors:
-
error: format '%u' expects argument of type 'unsigned int', but argument 3 has type 'std::reference_wrapper<unsigned int>' [-Werror=format=]
-
error: no match for 'operator=' (operand type are 'std::reference_wrapper<unsigned int>' and 'int')
Steps to reproduce the behavior
env:
- oracle linux 7.9 amd64
- gcc 11/12
# cd rocksdb-7.10.2
# make dbg
tested gcc 9, the same problem.
build 7.10.2 + gcc 12 + make all
get other error: '__Y' may by use uninitialized [-Werror=maybe-uninitialized]