Skip to content

Silence a warning on FreeBSD/OpenBSD when calling pthread_set_name_np().#1241

Merged
grynspan merged 1 commit into
mainfrom
jgrynspan/pthread_set_name_np-warning
Jul 25, 2025
Merged

Silence a warning on FreeBSD/OpenBSD when calling pthread_set_name_np().#1241
grynspan merged 1 commit into
mainfrom
jgrynspan/pthread_set_name_np-warning

Conversation

@grynspan

@grynspan grynspan commented Jul 25, 2025

Copy link
Copy Markdown
Contributor

On FreeBSD and OpenBSD, pthread_set_name_np() returns void, so we don't need to suppress the result (assigning it to _) and the Swift compiler complains that we do.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

…p()`.

On FreeBSD and OpenBSD, `pthread_set_name_np()` returns `void`, so we don't need
to suppress the result (assigning it to `_`) and the Swift compiler complains
that we do.
@grynspan grynspan added this to the Swift 6.x (main) milestone Jul 25, 2025
@grynspan grynspan self-assigned this Jul 25, 2025
@grynspan grynspan added bug 🪲 Something isn't working exit-tests ☠️ Work related to exit tests freebsd 😈 FreeBSD support attachments/activities 🖇️ Work related to attachments and/or activities openbsd 🐡 OpenBSD support labels Jul 25, 2025
@grynspan

Copy link
Copy Markdown
Contributor Author

@swift-ci test

@grynspan

Copy link
Copy Markdown
Contributor Author

@swift-ci test Windows

@grynspan grynspan merged commit 4df4ff0 into main Jul 25, 2025
1 of 3 checks passed
@grynspan grynspan deleted the jgrynspan/pthread_set_name_np-warning branch July 25, 2025 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

attachments/activities 🖇️ Work related to attachments and/or activities bug 🪲 Something isn't working exit-tests ☠️ Work related to exit tests freebsd 😈 FreeBSD support openbsd 🐡 OpenBSD support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants