projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d15d722
)
Only compile list_is_valid() when NDEBUG is undefined
author
Fabian Keil
<fk@fabiankeil.de>
Thu, 4 Feb 2021 12:40:42 +0000
(13:40 +0100)
committer
Fabian Keil
<fk@fabiankeil.de>
Sun, 21 Feb 2021 15:09:20 +0000
(16:09 +0100)
list.c
patch
|
blob
|
history
diff --git
a/list.c
b/list.c
index
b9963af
..
fe9c41e
100644
(file)
--- a/
list.c
+++ b/
list.c
@@
-55,8
+55,9
@@
#include "list.h"
#include "miscutil.h"
#include "list.h"
#include "miscutil.h"
+#ifndef NDEBUG
static int list_is_valid (const struct list *the_list);
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
/*********************************************************************
*
* Function : list_is_valid
@@
-203,6
+205,8
@@
static int list_is_valid (const struct list *the_list)
return 1;
#endif
}
return 1;
#endif
}
+#endif /* ndef NDEBUG */
+
/*********************************************************************
*
/*********************************************************************
*