]> git.ipfire.org Git - thirdparty/git.git/commit
winansi: use FLEX_ARRAY to avoid compiler warning
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 4 Oct 2019 15:09:27 +0000 (08:09 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 6 Oct 2019 00:07:44 +0000 (09:07 +0900)
commit41616ef6182271178c63e1caf0d21f12bea2d41e
tree4c447dec7d9be2dd84ed01d149bd3c5e61284c3c
parentc097b95a260b5a870c26a61d032169b70769e31a
winansi: use FLEX_ARRAY to avoid compiler warning

MSVC would complain thusly:

    C4200: nonstandard extension used: zero-sized array in struct/union

Let's just use the `FLEX_ARRAY` constant that we introduced for exactly
this type of scenario.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/winansi.c