Skip to content

Fix unused parameter warnings on macOS - #578

Merged
bsergean merged 2 commits into
masterfrom
fix-macos-warnings
May 21, 2026
Merged

Fix unused parameter warnings on macOS#578
bsergean merged 2 commits into
masterfrom
fix-macos-warnings

Conversation

@bsergean

Copy link
Copy Markdown
Collaborator

Summary

  • Add (void) preferTLS; in the #else branches of makeServerTLSOptions() and getWsScheme() in test/IXTest.cpp, where the parameter is unused when building without OpenSSL or MbedTLS (e.g. macOS Secure Transport)
  • Rename unused cs lambda parameter to /*cs*/ in test/IXWebSocketSendTimeoutTest.cpp

Test plan

  • Build on macOS with cmake -DUSE_TLS=1 && cmake --build build — no -Wunused-parameter warnings from project sources

🤖 Generated with Claude Code

bsergean and others added 2 commits May 21, 2026 15:25
Suppress -Wunused-parameter warnings in test files for parameters
that are only used under OpenSSL/MbedTLS preprocessor guards.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@bsergean
bsergean merged commit a1f85b1 into master May 21, 2026
7 checks passed
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.

1 participant