Skip to content

lib: drop UNUSED_PARAM macro#18455

Closed
vszakats wants to merge 2 commits intocurl:masterfrom
vszakats:unusedattr
Closed

lib: drop UNUSED_PARAM macro#18455
vszakats wants to merge 2 commits intocurl:masterfrom
vszakats:unusedattr

Conversation

@vszakats
Copy link
Copy Markdown
Member

@vszakats vszakats commented Sep 2, 2025

Added in 2011, but has seen little use in the code. The necessary
compiler feature is missing in some compilers (e.g. MSVC), thus in most
places the portable (void) cast is used in addition.

Also:

  • vtls/rustls: silence unused argument warning with (void).
    Necessary for MSVC, for example.

Ref: ee4ed46

@vszakats vszakats closed this in 0b0f3d9 Sep 3, 2025
@vszakats vszakats deleted the unusedattr branch September 3, 2025 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant