Open meilihao opened 1 year ago
build ok
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')
env:
# 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]
make all
'__Y' may by use uninitialized [-Werror=maybe-uninitialized]
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: