Merge branch 'ep/do-not-feed-a-pointer-to-array-size' into maint
commit335f1a7eb2a08218301deae92244591a0ee9710c
authorJunio C Hamano <gitster@pobox.com>
Tue, 16 Jun 2015 21:33:41 +0000 (16 14:33 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 16 Jun 2015 21:33:41 +0000 (16 14:33 -0700)
tree88267494e0615c43d9849f8efd23c62b091228e3
parent2c185f0476bbbd3a49dee54f3b67a76d90c59091
parent89c855ed3cbe64bea93ea081d0e96077e9ee8517
Merge branch 'ep/do-not-feed-a-pointer-to-array-size' into maint

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