From: Junio C Hamano Date: Wed, 20 Sep 2017 05:12:37 GMT Subject: Re: [PATCH v2 10/10] add UNLEAK annotation for reducing leak false positives Message-ID: In-Reply-To: <20170920022838.tlkb5qlmctlstqb6@sigill.intra.peff.net> Jeff King writes: > At any rate, I think Jonathan's point is that writing: > > UNLEAK(foo) > > will silently pass in a normal build, and only much later will somebody > run a leak-checking build and see the compile error. Yeah, I think I understand that concern. #if SOME_CONDITION #define X(y) do_x(y) #else #define X(y) /* nothing */ #endif is something we quite often use, and I just found it a bit unusual that all of a sudden we start to be extra careful only with this macro.