diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-04-19 13:44:09 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-04-19 13:44:09 +0000 |
commit | 129c1c0ef9266468d65fbcf846132b4329cad994 (patch) | |
tree | 0aeb7c371bb33f4fb69501b7715c82b769957896 /Build/source/texk/makeindexk | |
parent | 880a5b0998e88b6c3a3c50b3058f0139bf9b1211 (diff) |
Avoid Mac OS X compiler warnings, mainly 'differ in signedness'
git-svn-id: svn://tug.org/texlive/trunk@22123 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/makeindexk')
-rw-r--r-- | Build/source/texk/makeindexk/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/makeindexk/sortid.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/Build/source/texk/makeindexk/ChangeLog b/Build/source/texk/makeindexk/ChangeLog index de28d43a7be..bd66325afb2 100644 --- a/Build/source/texk/makeindexk/ChangeLog +++ b/Build/source/texk/makeindexk/ChangeLog @@ -1,3 +1,8 @@ +2011-04-18 Peter Breitenlohner <peb@mppmu.mpg.de> + + * sortid.c (compare_string): Cast strcoll() args to 'char *' to + avoid 'differ in signedness' warnings. + 2010-12-19 Peter Breitenlohner <peb@mppmu.mpg.de> * Makefile.am, configure.ac [WIN32]: Skip mkindex shell script. diff --git a/Build/source/texk/makeindexk/sortid.c b/Build/source/texk/makeindexk/sortid.c index be75fb5f7b7..f3353a5854d 100644 --- a/Build/source/texk/makeindexk/sortid.c +++ b/Build/source/texk/makeindexk/sortid.c @@ -167,7 +167,7 @@ compare_string(unsigned char *a, unsigned char *b) int al; int bl; - if (locale_sort) return strcoll(a, b); + if (locale_sort) return strcoll((char *)a, (char *)b); while ((a[i] != NUL) || (b[j] != NUL)) { if (a[i] == NUL) |