This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
utf8.c: Add missing 'const' to formal parameter
authorKarl Williamson <khw@cpan.org>
Fri, 12 May 2017 00:30:34 +0000 (18:30 -0600)
committerKarl Williamson <khw@cpan.org>
Sat, 10 Jun 2017 17:33:52 +0000 (11:33 -0600)
This makes it match the embed.fnc entry.  For some reason no warning was
given except by the Win32 compiler

utf8.c

diff --git a/utf8.c b/utf8.c
index c84fa98..e8e143c 100644 (file)
--- a/utf8.c
+++ b/utf8.c
@@ -2604,7 +2604,7 @@ S_warn_on_first_deprecated_use(pTHX_ const char * const name,
 
 bool
 Perl__is_utf8_FOO(pTHX_       U8   classnum,
-                        const U8   *p,
+                        const U8   * const p,
                         const char * const name,
                         const char * const alternative,
                         const bool use_utf8,