From: Jonathan Nieder Date: Tue, 21 Aug 2018 04:49:54 GMT Subject: Re: [PATCH v1 02/25] structured-logging: add STRUCTURED_LOGGING=1 to Makefile Message-ID: <20180821044954.GB219616@aiede.svl.corp.google.com> In-Reply-To: <20180713165621.52017-3-git@jeffhostetler.com> git@jeffhostetler.com wrote: > From: Jeff Hostetler > > Teach the Makefile to take STRUCTURED_LOGGING=1 variable to > compile in/out structured logging feature. > > Signed-off-by: Jeff Hostetler > --- > Makefile | 8 ++++++++ > structured-logging.c | 9 +++++++++ > structured-logging.h | 13 +++++++++++++ > 3 files changed, 30 insertions(+) > create mode 100644 structured-logging.c > create mode 100644 structured-logging.h This should probably be squashed with a later patch (e.g., patch 3). When taken alone, it produces [...] > --- /dev/null > +++ b/structured-logging.c > @@ -0,0 +1,9 @@ > +#if !defined(STRUCTURED_LOGGING) > +/* > + * Structured logging is not available. > + * Stub out all API routines. > + */ > + > +#else > + > +#endif which is not idiomatic (for example, it's missing a #include of git-compat-util.h, etc). Thanks, Jonathan