diff options
author | Vicent Martà <vicent@github.com> | 2012-02-13 07:02:42 -0800 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2012-02-13 07:02:42 -0800 |
commit | 2c19b5658c084df7a4cb475dfbd8347431aa4482 (patch) | |
tree | 2d07ddf0b3da92d5a6ec123022bc3e53e3cedac7 /src | |
parent | 4ef52315d97647ea389c8c0ec803ac6d6f9b1082 (diff) | |
parent | 15f52ae1d63712a831e02d02cfe1c84c80dc0ef5 (diff) | |
download | libgit2-2c19b5658c084df7a4cb475dfbd8347431aa4482.tar.gz |
Merge pull request #474 from schu/clang-unused
Fix "clang warning: expression result unused"
Diffstat (limited to 'src')
-rw-r--r-- | src/config_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config_file.c b/src/config_file.c index 481c593f4..82b00b987 100644 --- a/src/config_file.c +++ b/src/config_file.c @@ -738,7 +738,7 @@ error: static int skip_bom(diskfile_backend *cfg) { - static const char *utf8_bom = "\xef\xbb\xbf"; + static const char utf8_bom[] = "\xef\xbb\xbf"; if (cfg->reader.buffer.len < sizeof(utf8_bom)) return GIT_SUCCESS; |