0% clang --version
1Apple clang version 14.0.0 (clang-1400.0.29.202)
2Target: x86_64-apple-darwin21.6.0
3Thread model: posix
4InstalledDir: /Library/Developer/CommandLineTools/usr/bin
0...
1CXX wallet/libbitcoin_wallet_a-walletdb.o
2wallet/walletdb.cpp:1518:15: warning: code will never be executed [-Wunreachable-code]
3 error = Untranslated(strprintf("Failed to open database path '%s'. Build does not support Berkeley DB database format.", fs::PathToString(path)));
4 ^
5wallet/walletdb.cpp:1513:19: note: silence by adding parentheses to mark code as explicitly dead
6 if constexpr (true) {
7 ^
8 /* DISABLES CODE */ ( )
9wallet/walletdb.cpp:1506:19: warning: code will never be executed [-Wunreachable-code]
10 error = Untranslated(strprintf("Failed to open database path '%s'. Build does not support SQLite database format.", fs::PathToString(path)));
11 ^
12wallet/walletdb.cpp:1501:23: note: silence by adding parentheses to mark code as explicitly dead
13 if constexpr (true) {
14 ^
15 /* DISABLES CODE */ ( )
162 warnings generated.
17...
Seems related to #29315.
Not happening with Clang 15 in the macOS CI job.