summaryrefslogtreecommitdiff
path: root/pp_sort.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2014-06-12 14:35:45 -0600
committerKarl Williamson <khw@cpan.org>2014-06-12 15:04:54 -0600
commit91191cf732548d9b59655daee2195082e6ce0082 (patch)
tree88bc66ec0ad9d5905e6edc21c11f0ab053b27fef /pp_sort.c
parent5a6bb681360972ef854d7b6b457148c9b1aa61a8 (diff)
downloadperl-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 'pp_sort.c')
-rw-r--r--pp_sort.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pp_sort.c b/pp_sort.c
index 86a5e36708..0d9ef4715c 100644
--- a/pp_sort.c
+++ b/pp_sort.c
@@ -2001,6 +2001,8 @@ S_amagic_cmp(pTHX_ SV *const str1, SV *const str2)
return sv_cmp(str1, str2);
}
+#ifdef USE_LOCALE_COLLATE
+
static I32
S_amagic_cmp_locale(pTHX_ SV *const str1, SV *const str2)
{
@@ -2022,6 +2024,8 @@ S_amagic_cmp_locale(pTHX_ SV *const str1, SV *const str2)
return sv_cmp_locale(str1, str2);
}
+#endif
+
/*
* Local variables:
* c-indentation-style: bsd