Merge branch 'ep/do-not-feed-a-pointer-to-array-size'
commit7cb5073fcaffe8a8c0572fdffb332110b0eaae69
authorJunio C Hamano <gitster@pobox.com>
Mon, 11 May 2015 21:24:00 +0000 (11 14:24 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 May 2015 21:24:00 +0000 (11 14:24 -0700)
treea21b3afa490380dc5a31b863466fe45e0de81e4b
parent051086b947ee7a6fdd5697889a225098f723761d
parent89c855ed3cbe64bea93ea081d0e96077e9ee8517
Merge branch 'ep/do-not-feed-a-pointer-to-array-size'

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
git-compat-util.h