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 compiler warnings on macOS #9128

Merged
merged 1 commit into from
Sep 24, 2024
Merged

Conversation

bayandin
Copy link
Member

Problem

Compilation of neon extension on macOS produces a warning (after #9008)

/Users/runner/work/neon/neon//pgxn/neon/neon_perf_counters.c:50:1: error: non-void function does not return a value [-Werror,-Wreturn-type]

https://github.com/neondatabase/neon/actions/runs/11015702818/job/30589419704#step:18:10437

Summary of changes

  • Change return type of NeonPerfCountersShmemInit to void

Checklist before requesting a review

  • I have performed a self-review of my code.
  • If it is a core feature, I have added thorough tests.
  • Do we need to implement analytics? if so did you add the relevant metrics to the dashboard?
  • If this PR requires public announcement, mark it with /release-notes label and add several sentences in this section.

Checklist before merging

  • Do not forget to reformat commit message to not include the above checklist

@bayandin bayandin requested review from a team as code owners September 24, 2024 14:50
@bayandin bayandin changed the title Fix compile warnings on macOS Fix compiler warnings on macOS Sep 24, 2024
@bayandin bayandin added the run-extra-build-macos When placed on a PR, tells the CI to run a build on macOS. No unit tests are run, though. label Sep 24, 2024
@bayandin bayandin force-pushed the bayandin/fix-warnings-on-macos branch from b94442b to 4677a95 Compare September 24, 2024 14:53
@bayandin bayandin enabled auto-merge (squash) September 24, 2024 17:42
@bayandin bayandin merged commit 523cf71 into main Sep 24, 2024
75 of 78 checks passed
@bayandin bayandin deleted the bayandin/fix-warnings-on-macos branch September 24, 2024 18:11
Copy link

5064 tests run: 4898 passed, 2 failed, 164 skipped (full report)


Failures on Postgres 16

Failures on Postgres 15

# Run all failed tests locally:
scripts/pytest -vv -n $(nproc) -k "test_storage_controller_heartbeats[release-pg15-failure4] or test_storage_controller_heartbeats[release-pg16-failure4]"
Flaky tests (8)

Postgres 17

Postgres 16

Code coverage* (full report)

  • functions: 32.1% (7471 of 23243 functions)
  • lines: 50.0% (60201 of 120505 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
4677a95 at 2024-09-24T18:22:07.708Z :recycle:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-extra-build-macos When placed on a PR, tells the CI to run a build on macOS. No unit tests are run, though.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants