summaryrefslogtreecommitdiff
path: root/walker.h
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2021-03-13 16:10:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-03-13 23:56:13 (GMT)
commitf1121499e6460e814ec3cffa0b18942ac529f768 (patch)
tree21b2e97b9e51aa208c9365b4f016c1c9c7b4c450 /walker.h
parent13d7ab6b5d7929825b626f050b62a11241ea4945 (diff)
downloadgit-f1121499e6460e814ec3cffa0b18942ac529f768.zip
git-f1121499e6460e814ec3cffa0b18942ac529f768.tar.gz
git-f1121499e6460e814ec3cffa0b18942ac529f768.tar.bz2
git-compat-util.h: drop trailing semicolon from macro definition
Make CALLOC_ARRAY usable like a function by requiring callers to supply the trailing semicolon, which all of the current ones already do. With the extra semicolon e.g. the following code wouldn't compile because it disconnects the "else" from the "if": if (condition) CALLOC_ARRAY(ptr, n); else whatever(); Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'walker.h')
0 files changed, 0 insertions, 0 deletions