]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'ep/do-not-feed-a-pointer-to-array-size' into maint
authorJunio C Hamano <gitster@pobox.com>
Tue, 16 Jun 2015 21:33:41 +0000 (14:33 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 16 Jun 2015 21:33:41 +0000 (14:33 -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