From: Ævar Arnfjörð Bjarmason Date: Sun, 29 May 2011 18:20:01 GMT Subject: Re: [PATCH v0 3/3] Bigfile: teach "git add" to send a large file straight to a pack Message-ID: In-Reply-To: <1304844455-23570-4-git-send-email-gitster@pobox.com> On Sun, May 8, 2011 at 10:47, Junio C Hamano wrote: > +               char buf[10240]; > +               size_t sz = size < sizeof(buf) ? size : sizeof(buf); > +               size_t actual; > + > +               actual = read_in_full(fd, buf, sz); > +               if (actual < 0) > +                       die_errno("index-stream: reading input"); From clang: sha1_file.c:2710:14: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if (actual < 0) ~~~~~~ ^ ~ Looks like it's right. size_t is unsigned according to the standard, so that die_errno() is never reached.