> 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.
You are right, I should have checked at upstream first.
The change in
0001-Don-t-check-if-an-unsigned-value-is-negative.patch
was accepted in upstream git in 3ce3ffb.
And 0003-Use-the-correct-syntax-for-pointer-arithmetic.patch was heavily
laughed about so far... So I guess I just ignore that for now.
Anyway one can always use
make CFLAGS="-g -O2 -Wall -Werror -Wno-format-invalid-specifier
-Wno-string-plus-int -Wno-tautological-compare" CC=clang
I'll try to get
0002-Add-pragma-to-ignore-the-warning-for-clang-also.patch upstream at
gnulib as that is the real source for poll.c.
Thomas