diff options
author | Karl Williamson <khw@cpan.org> | 2014-06-12 14:35:45 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2014-06-12 15:04:54 -0600 |
commit | 91191cf732548d9b59655daee2195082e6ce0082 (patch) | |
tree | 88bc66ec0ad9d5905e6edc21c11f0ab053b27fef /proto.h | |
parent | 5a6bb681360972ef854d7b6b457148c9b1aa61a8 (diff) | |
download | perl-91191cf732548d9b59655daee2195082e6ce0082.tar.gz |
Fix some compilation warnings
After commits d6ded95025185cb1ec8ca3ba5879cab881d8b180 and
130c5df3625bd130cd1e2771308fcd4eb66cebb2, there are some compilation
warnings if not all locale categories are used.
Diffstat (limited to 'proto.h')
-rw-r--r-- | proto.h | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -6588,12 +6588,6 @@ STATIC I32 S_amagic_cmp(pTHX_ SV *const str1, SV *const str2) #define PERL_ARGS_ASSERT_AMAGIC_CMP \ assert(str1); assert(str2) -STATIC I32 S_amagic_cmp_locale(pTHX_ SV *const str1, SV *const str2) - __attribute__nonnull__(pTHX_1) - __attribute__nonnull__(pTHX_2); -#define PERL_ARGS_ASSERT_AMAGIC_CMP_LOCALE \ - assert(str1); assert(str2) - STATIC I32 S_amagic_i_ncmp(pTHX_ SV *const a, SV *const b) __attribute__nonnull__(pTHX_1) __attribute__nonnull__(pTHX_2); @@ -6641,6 +6635,14 @@ STATIC I32 S_sv_ncmp(pTHX_ SV *const a, SV *const b) #define PERL_ARGS_ASSERT_SV_NCMP \ assert(a); assert(b) +# if defined(USE_LOCALE_COLLATE) +STATIC I32 S_amagic_cmp_locale(pTHX_ SV *const str1, SV *const str2) + __attribute__nonnull__(pTHX_1) + __attribute__nonnull__(pTHX_2); +#define PERL_ARGS_ASSERT_AMAGIC_CMP_LOCALE \ + assert(str1); assert(str2) + +# endif #endif #if defined(PERL_IN_PP_SYS_C) STATIC OP* S_doform(pTHX_ CV *cv, GV *gv, OP *retop) |