On Thu, May 2, 2013 at 4:52 PM, Thomas Braun
<
thomas...@virtuell-zuhause.de> wrote:
> Hi,
>
> I managed to create a llvm+clang mingw package [1]. With that I compiled
> msysgit/git using
>
> make CFLAGS="-g -O2 -Wall -Werror -Wno-format-invalid-specifier" CC=clang
>
> and some errors popped up which I fixed and would deem upstream-pushable.
> See the attachement or
https://github.com/t-b/git/commits/clang-fixes.
> Maybe it makes also sense to send 9d07211 and e81eb32 to upstream git?
>
These patches doesn't touch Windows-only code, so this is probably not
the right list for them; clang is interesting for non-Windows users
also. But nice work!
As for the actualy patches, the third one looks bogus to me; "array +
index" is a common way of getting the address of an element in an
array; if claing complains about this, it going to complain about a
*lot* of perfectly reasonable code. I seem to remember that very
change being discussed upstream, though.