From: Fabian Keil <fk@fabiankeil.de>
Date: Thu, 4 Feb 2021 12:40:42 +0000 (+0100)
Subject: Only compile list_is_valid() when NDEBUG is undefined
X-Git-Tag: v_3_0_32~79
X-Git-Url: http://www.privoxy.org/gitweb/user-manual/static/faq/static/gitweb.js?a=commitdiff_plain;h=7e5dddf41e07b32e2c75fb5d968b9318dc58c92a;p=privoxy.git

Only compile list_is_valid() when NDEBUG is undefined
---

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 */
+
 
 /*********************************************************************
  *