From: Junio C Hamano Date: Mon, 11 May 2015 21:24:00 +0000 (-0700) Subject: Merge branch 'ep/do-not-feed-a-pointer-to-array-size' X-Git-Tag: v2.5.0-rc0~121 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/7cb5073fcaffe8a8c0572fdffb332110b0eaae69 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 --- 7cb5073fcaffe8a8c0572fdffb332110b0eaae69