In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/710891042a142a482afd4eed1f3b1feb27a9c504?hp=aca72608d124e3b2f36f1612a305708869f7b365>
- Log ----------------------------------------------------------------- commit 710891042a142a482afd4eed1f3b1feb27a9c504 Author: George Greer <[email protected]> Date: Wed Jul 21 10:11:51 2010 +0200 C++ compiler fix for util.c Even with all of the changes, we still die on a strchr() call now because glibc provides "correct" strchr prototypes rather than the C ones. C: char *strchr(const char *s, int c) C++: const char *strchr(const char *s, int c) char *strchr( char *s, int c) and of course C++ doesn't let you convert a 'const char *' to a 'char *' so boom on util.c:3972 in Perl_grok_bslash_o (due to 'e'). ----------------------------------------------------------------------- Summary of changes: util.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/util.c b/util.c index 6fdc653..5bfe354 100644 --- a/util.c +++ b/util.c @@ -3950,7 +3950,7 @@ Perl_grok_bslash_o(pTHX_ const char *s, UV *uv, STRLEN *len, const bool output_w * output_warning says whether to output any warning messages, or suppress * them */ - char* e; + const char* e; STRLEN numbers_len; I32 flags = PERL_SCAN_ALLOW_UNDERSCORES | PERL_SCAN_DISALLOW_PREFIX -- Perl5 Master Repository
