summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorLibravatar Ben Walton <bdwalton@gmail.com>2015-03-02 19:22:31 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-03-02 12:32:24 -0800
commit189c860c9ec5deb95845c056ca5c15b58970158e (patch)
tree95425f23f775ddfd60d1e96927aca0eabc6203b7 /git-compat-util.h
parentMerge branch 'maint-1.9' into maint-2.0 (diff)
downloadtgif-189c860c9ec5deb95845c056ca5c15b58970158e.tar.xz
kwset: use unsigned char to store values with high-bit set
Sun Studio on Solaris issues warnings about improper initialization values being used when defining tolower_trans_tbl[] in ctype.c. The array wants to store values with high-bit set and treat them as values between 128 to 255. Unlike the rest of the Git codebase where we explicitly specify 'unsigned char' for such variables and arrays, however, kwset code we borrowed from elsewhere uses 'char' for this and other variables. Fix the declarations to explicitly use 'unsigned char' where necessary to bring it in line with the rest of the Git. Signed-off-by: Ben Walton <bdwalton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index e6a4159a25..e96bec3a96 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -554,7 +554,7 @@ static inline int has_extension(const char *filename, const char *ext)
}
/* in ctype.c, for kwset users */
-extern const char tolower_trans_tbl[256];
+extern const unsigned char tolower_trans_tbl[256];
/* Sane ctype - no locale, and works with signed chars */
#undef isascii