vcpkg/ports/libpqxx/fix_build_with_apple_clang_13.patch
nicole mazzuca 5edd518dc3
[macos ci] update to 2022-01-03 (#22314)
* [macos ci] update to 2022-01-03

* update the instructions

* forgot to update azure-pipelines-osx.yml

* install parallels in Install-Prerequisites.ps1

* oops

* fix ace, libsoundio, and libpqxx

* tensorflow doesn't yet support macOS 12
2022-01-10 16:08:51 -08:00

16 lines
468 B
Diff

# apple clang 13 has a bug where [[likely]] or [[unlikely]] returns
# don't count for checking that a constexpr function has a return,
# so at least one return must be unmarked
--- a/src/robusttransaction.cxx
+++ b/src/robusttransaction.cxx
@@ -62,9 +62,8 @@ constexpr tx_stat parse_status(std::string_view text) noexcept
case 'i':
if (text == in_progress)
PQXX_LIKELY return tx_in_progress;
break;
}
- PQXX_UNLIKELY
return tx_unknown;
}