Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix LLVM 14 build regression under macOS #1492

Open
wants to merge 1 commit into
base: fb-mysql-8.0.32
Choose a base branch
from

Conversation

laurynas-biveinis
Copy link
Contributor

This fixes, trivially:

sql/xa/recovery.cc:234:33: error: invalid operands to binary expression ('std::pair<int64_t, int64_t>' (aka 'pair<long long, long long>') and 'pair<typename __unwrap_ref_decay::type, typename __unwrap_ref_decay::type>' (aka 'pair<long, long>'))
if (info->smallest_lwm_opid == std::make_pair(-1L, -1L) ||
~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~

Squash with 9fc35fa

This fixes the same class of errors as 2dc2bdd,
but the current error does not trigger with XCode clang for some reason, and is
only visible with LLVM 14 (possibly other versions too) from Homebrew.

This fixes, trivially:

sql/xa/recovery.cc:234:33: error: invalid operands to binary expression ('std::pair<int64_t, int64_t>' (aka 'pair<long long, long long>') and 'pair<typename __unwrap_ref_decay<long>::type, typename __unwrap_ref_decay<long>::type>' (aka 'pair<long, long>'))
    if (info->smallest_lwm_opid == std::make_pair(-1L, -1L) ||
        ~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~

Squash with 9fc35fa

This fixes the same class of errors as 2dc2bdd,
but the current error does not trigger with XCode clang for some reason, and is
only visible with LLVM 14 (possibly other versions too) from Homebrew.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants