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

[RFC] fix -Wdiscarded-qualifiers warning #216

Closed
wants to merge 1 commit into from
Closed

Conversation

N-R-K
Copy link
Contributor

@N-R-K N-R-K commented Feb 12, 2022

Hi, I looked into this because of the following warning:

istream.c:447:20: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  447 |             method = X509V3_EXT_get(ex);
      |                    ^

Simply adding const to method seems to compile fine, but it looks like that the pointer isn't even being used. So I'm not sure what's going on here, so my patch is possibly incorrect. Would appreciate if someone can take a look here.

@rkta
Copy link
Contributor

rkta commented Feb 12, 2022 via email

@N-R-K
Copy link
Contributor Author

N-R-K commented Mar 6, 2022

Looks like @rkta fixed this on #222. Closing this.

@N-R-K N-R-K closed this Mar 6, 2022
@N-R-K N-R-K deleted the add_const branch March 6, 2022 11:58
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.

None yet

2 participants