Merge branch 'ep/do-not-feed-a-pointer-to-array-size' into next
commit64d9a20d3e21510b73e56e9c7b04a4f62ea135d0
authorJunio C Hamano <gitster@pobox.com>
Thu, 7 May 2015 20:21:10 +0000 (7 13:21 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 7 May 2015 20:21:11 +0000 (7 13:21 -0700)
treed96fa99274ec480f3d406922b5501a4b178a30c4
parent9b81a0620977ee48bfb9c29d1855961cd7d2fd41
parent89c855ed3cbe64bea93ea081d0e96077e9ee8517
Merge branch 'ep/do-not-feed-a-pointer-to-array-size' into next

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