Skip to content

enca: fix discard-qualifier warning in is_valid_utf7()#100

Merged
Syed-Shahrukh-OSSRevival merged 1 commit intoProject-OSS-Revival:masterfrom
heitbaum:patch-3
Apr 27, 2026
Merged

enca: fix discard-qualifier warning in is_valid_utf7()#100
Syed-Shahrukh-OSSRevival merged 1 commit intoProject-OSS-Revival:masterfrom
heitbaum:patch-3

Conversation

@heitbaum
Copy link
Copy Markdown
Contributor

memchr() returns void* from a const unsigned char* buffer but was assigned to non-const unsigned char* p and q, discarding the const qualifier. Change both pointers to const unsigned char* to correctly propagate constness from the buffer parameter.

memchr() returns void* from a const unsigned char* buffer but was
assigned to non-const unsigned char* p and q, discarding the const
qualifier. Change both pointers to const unsigned char* to correctly
propagate constness from the buffer parameter.
@Syed-Shahrukh-OSSRevival
Copy link
Copy Markdown
Member

Thank you for your contribution.

@Syed-Shahrukh-OSSRevival Syed-Shahrukh-OSSRevival merged commit 93a7400 into Project-OSS-Revival:master Apr 27, 2026
3 checks passed
@heitbaum heitbaum deleted the patch-3 branch April 27, 2026 20:49
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