[Privoxy-commits] [privoxy] 02/46: Only compile list_is_valid() when NDEBUG is undefined
User Git
git at git.privoxy.org
Sun Feb 21 15:10:24 UTC 2021
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository privoxy.
commit 7e5dddf41e07b32e2c75fb5d968b9318dc58c92a
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Thu Feb 4 13:40:42 2021 +0100
Only compile list_is_valid() when NDEBUG is undefined
---
list.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/list.c b/list.c
index b9963af1..fe9c41e5 100644
--- a/list.c
+++ b/list.c
@@ -55,8 +55,9 @@
#include "list.h"
#include "miscutil.h"
+#ifndef NDEBUG
static int list_is_valid (const struct list *the_list);
-
+#endif
/*********************************************************************
*
@@ -123,6 +124,7 @@ void destroy_list (struct list *the_list)
}
+#ifndef NDEBUG
/*********************************************************************
*
* Function : list_is_valid
@@ -203,6 +205,8 @@ static int list_is_valid (const struct list *the_list)
return 1;
#endif
}
+#endif /* ndef NDEBUG */
+
/*********************************************************************
*
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Privoxy-commits
mailing list