mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
Merge pull request #474 from schu/clang-unused
Fix "clang warning: expression result unused"
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user