From 3e486c4578f3f6a81fc0f9afba6551dfa8c7b63b Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 11 Dec 2022 10:02:13 -0800 Subject: Only build debug infrastructure if DEBUG is defined It's only used when DEBUG is defined, so don't build it when we're not using it. Signed-off-by: Alan Coopersmith --- utils.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'utils.c') diff --git a/utils.c b/utils.c index 8b7b6c5..6dd7e78 100644 --- a/utils.c +++ b/utils.c @@ -55,9 +55,10 @@ uRecalloc(void *old, size_t nOld, size_t nNew, size_t itemSize) /***====================================================================***/ -/*** PRINT FUNCTIONS ***/ +/*** DEBUG FUNCTIONS ***/ /***====================================================================***/ +#ifdef DEBUG static FILE *uDebugFile = NULL; int uDebugIndentLevel = 0; static const int uDebugIndentSize = 4; @@ -96,6 +97,7 @@ uDebug(char *s, ...) va_end(args); fflush(uDebugFile); } +#endif /***====================================================================***/ -- cgit v1.2.3