Skip to content

Commit

Permalink
uvoffuni_to_utf8_flags_msgs(): Fix compiler warning
Browse files Browse the repository at this point in the history
A parameter to this function was declared const in embed.fnc, but isn't
const.

This commit also adds a const to another parameter that is constant.
  • Loading branch information
khwilliamson committed May 12, 2023
1 parent f4eb680 commit 76a319e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion embed.fnc
Expand Up @@ -3613,7 +3613,7 @@ CMdp |U8 * |uvoffuni_to_utf8_flags \
Cp |U8 * |uvoffuni_to_utf8_flags_msgs \
|NN U8 *d \
|UV input_uv \
|const UV flags \
|UV flags \
|NULLOK HV **msgs
Cp |U8 * |uvuni_to_utf8 |NN U8 *d \
|UV uv
Expand Down
2 changes: 1 addition & 1 deletion proto.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion utf8.c
Expand Up @@ -203,7 +203,7 @@ The caller, of course, is responsible for freeing any returned HV.
/* Undocumented; we don't want people using this. Instead they should use
* uvchr_to_utf8_flags_msgs() */
U8 *
Perl_uvoffuni_to_utf8_flags_msgs(pTHX_ U8 *d, UV input_uv, UV flags, HV** msgs)
Perl_uvoffuni_to_utf8_flags_msgs(pTHX_ U8 *d, const UV input_uv, UV flags, HV** msgs)
{
U8 *p;
UV shifted_uv = input_uv;
Expand Down

0 comments on commit 76a319e

Please sign in to comment.