From: Johan Herland Date: Fri, 18 Nov 2011 06:16:13 GMT Subject: Re: [PATCH 8/8] Enable GIT_DEBUG_MEMCHECK on git_pathname() Message-ID: In-Reply-To: <20111118012746.GA22485@elie.hsd1.il.comcast.net> On Fri, Nov 18, 2011 at 02:27, Jonathan Nieder wrote: > Subject: notes merge: eliminate OUTPUT macro > > The macro is variadic, which breaks support for pre-C99 compilers, > and it hides an "if", which can make code hard to understand on > first reading if some arguments have side-effects. > > The OUTPUT macro seems to have been inspired by the "output" function > from merge-recursive.  But that function in merge-recursive exists to > indent output based on the level of recursion and there is no similar > justification for such a function in "notes merge". > > Noticed with 'make CC="gcc -std=c89 -pedantic"': > >  notes-merge.c:24:22: warning: anonymous variadic macros were introduced in C99 [-Wvariadic-macros] > > Encouraged-by: Nguyễn Thái Ngọc Duy > Signed-off-by: Jonathan Nieder Acked-by: Johan Herland -- Johan Herland, www.herland.net