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 unused parameter warnings #128

Merged
merged 1 commit into from
Aug 27, 2024
Merged

Conversation

dveeden
Copy link
Contributor

@dveeden dveeden commented Aug 26, 2024

Compiling on Fedora 40 with GCC 14.2.1 results in warnings (or errors with -Werror=unused-parameter). This tries to fix these warnings.

DBI.xs: In function ‘dbi_ima_free’:
DBI.xs:250:46: warning: unused parameter ‘mg’ [-Wunused-parameter]
  250 | static int dbi_ima_free(pTHX_ SV* sv, MAGIC* mg)
      |                                       ~~~~~~~^~
DBI.xs: In function ‘sql_type_cast_svpv’:
DBI.xs:1950:65: warning: unused parameter ‘v’ [-Wunused-parameter]
 1950 | sql_type_cast_svpv(pTHX_ SV *sv, int sql_type, U32 flags, void *v)
      |                                                           ~~~~~~^

Copy link
Member

@Tux Tux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will have to test that on ancient perl before I approve

Thanks so far

@Tux Tux merged commit bd7bdba into perl5-dbi:master Aug 27, 2024
34 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.

2 participants