In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/f019f68fb9e27d1f5018d841f90d21e2fd73ea4a?hp=9c39b21c956ddb92915dae81f72c4d8e90f92958>
- Log ----------------------------------------------------------------- commit f019f68fb9e27d1f5018d841f90d21e2fd73ea4a Author: Jarkko Hietaniemi <j...@iki.fi> Date: Wed May 28 11:09:23 2014 -0400 g++ cleanups. regcomp.c:11083: warning: suggest a space before ';' or explicit braces around empty body in 'for' statement locale.c:1113: warning: comparison between signed and unsigned integer expressions ----------------------------------------------------------------------- Summary of changes: locale.c | 2 +- regcomp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/locale.c b/locale.c index 6e8728c..66524e6 100644 --- a/locale.c +++ b/locale.c @@ -1109,7 +1109,7 @@ S_is_cur_LC_category_utf8(pTHX_ int category) (void) mbtowc(&wc, NULL, 0); /* Reset any shift state */ GCC_DIAG_RESTORE; errno = 0; - if (mbtowc(&wc, HYPHEN_UTF8, strlen(HYPHEN_UTF8)) + if ((size_t)mbtowc(&wc, HYPHEN_UTF8, strlen(HYPHEN_UTF8)) != strlen(HYPHEN_UTF8) || wc != (wchar_t) 0x2010) { diff --git a/regcomp.c b/regcomp.c index 5cc4105..b18149f 100644 --- a/regcomp.c +++ b/regcomp.c @@ -11080,7 +11080,7 @@ S_backref_value(char *p) { char *q = p; - for (;isDIGIT(*q); q++); /* calculate length of num */ + for (;isDIGIT(*q); q++) {} /* calculate length of num */ if (q - p == 0 || q - p > 9) return I32_MAX; return atoi(p); -- Perl5 Master Repository