Merge branch 'ep/do-not-feed-a-pointer-to-array-size'
authorJunio C Hamano <gitster@pobox.com>
Mon, 11 May 2015 21:24:00 +0000 (14:24 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 May 2015 21:24:00 +0000 (14:24 -0700)
Catch a programmer mistake to feed a pointer not an array to
ARRAY_SIZE() macro, by using a couple of GCC extensions.

* ep/do-not-feed-a-pointer-to-array-size:
git-compat-util.h: implement a different ARRAY_SIZE macro for for safely deriving the size of array

1  2 
git-compat-util.h
Simple merge