diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2007-03-12 15:33:18 -0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-03-12 23:40:18 -0700 |
commit | 1a8f27413bfe438ce8f8aba56aa48f980f6144d1 (patch) | |
tree | a52d78c5a16873d90044a970f9e57eba2c9e9442 /cache.h | |
parent | b1daf300d0f56a01e5800a3d989b4cb150d99140 (diff) | |
download | git-1a8f27413bfe438ce8f8aba56aa48f980f6144d1.tar.gz git-1a8f27413bfe438ce8f8aba56aa48f980f6144d1.tar.xz |
Correct new compiler warnings in builtin-revert
The new builtin-revert code introduces a few new compiler errors
when I'm building with my stricter set of checks enabled in CFLAGS.
These all just stem from trying to store a constant string into
a non-const char*. Simple fix, make the variables const char*.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -449,7 +449,7 @@ extern int check_repository_format_version(const char *var, const char *value); extern char git_default_email[MAX_GITNAME]; extern char git_default_name[MAX_GITNAME]; -extern char *git_commit_encoding; +extern const char *git_commit_encoding; extern const char *git_log_output_encoding; extern int copy_fd(int ifd, int ofd); |