Browse code

Ensure assert turned on only if config --enable-debug is used

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@1043 77e5149b-7576-45b1-b177-96237e5ba77b

Nigel Horne authored on 2004/10/28 17:15:32
Showing 2 changed files
... ...
@@ -1,3 +1,8 @@
1
+Thu Oct 28 09:14:22 BST 2004 (njh)
2
+----------------------------------
3
+  * libclamav/strrcpy.c:	Ensure that assert is only used if
4
+					--enable-debug is given to configure
5
+
1 6
 Wed Oct 27 13:36:14 BST 2004 (njh)
2 7
 ----------------------------------
3 8
   * clamav-milter:	Remove X-VIRUS-STATUS on incoming messages
... ...
@@ -16,7 +16,16 @@
16 16
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 17
  */
18 18
 
19
+#if HAVE_CONFIG_H
20
+#include "clamav-config.h"
21
+#endif
22
+
19 23
 #include <stdio.h>
24
+
25
+#ifndef	CL_DEBUG
26
+#define	NDEBUG	/* map CLAMAV debug onto standard */
27
+#endif
28
+
20 29
 #include <assert.h>
21 30
 
22 31
 #include "strrcpy.h"