8000 Fix build when cassert is not set by AndersAstrand · Pull Request #341 · percona/postgres · GitHub
[go: up one dir, main page]

Skip to content

Fix build when cassert is not set #341

8000
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

Conversation

AndersAstrand
Copy link
Collaborator

Variables that are only ever used for Assert() breaks the build when asserts aren't enabled, as the compiler complains about unused variables.

None of our other init functions does this, and without cassert the
compiler complains about the initialized value of initialized is unused.
It was already set up to throw an error if connection failed, and the
unused result prevented compilation without cassert defined.
@AndersAstrand AndersAstrand force-pushed the tde/fix-build-without-cassert branch from 42225ec to 7b25902 Compare May 15, 2025 18:18
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.49%. Comparing base (0c151ea) to head (7b25902).
Report is 1 commits behind head on TDE_REL_17_STABLE.

❌ Your project status has failed because the head coverage (80.49%) is below the target coverage (90.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@                  Coverage Diff                  @@
##           TDE_REL_17_STABLE     #341      +/-   ##
=====================================================
- Coverage              80.49%   80.49%   -0.01%     
=====================================================
  Files                     22       22              
  Lines                   2605     2604       -1     
  Branches                 398      398              
=====================================================
- Hits                    2097     2096       -1     
  Misses                   430      430              
  Partials                  78       78              
Components Coverage Δ
access 82.95% <ø> (ø)
catalog 87.55% <ø> (ø)
common 91.80% <ø> (ø)
encryption 75.47% <ø> (-0.23%) ⬇️
keyring 72.00% <100.00%> (ø)
src 66.74% <ø> (ø)
smgr 97.27% <ø> (ø)
transam ∅ <ø> (∅)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@AndersAstrand AndersAstrand merged commit 2d944d5 into percona:TDE_REL_17_STABLE May 19, 2025
27 checks passed
@AndersAstrand AndersAstrand deleted the tde/fix-build-without-cassert branch May 19, 2025 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0