]> granicus.if.org Git - graphviz/commitdiff
stop disabling assertions in libcgraph when DEBUG is undefined
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 21 Nov 2020 23:22:29 +0000 (15:22 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 23 Jan 2021 18:55:48 +0000 (10:55 -0800)
This is counterintuitive to developers and moreover assertions are already
controllable via NDEBUG.

lib/cgraph/cghdr.h

index 131efbadfd2a72daf9673b9e71b604cdabb79922..e3ab29f5e8ac90a0a7fdfb221c828759b11b9bba 100644 (file)
 #ifdef HAVE_UNISTD_H
 #include       <unistd.h>
 #endif                         /* HAVE_UNISTD_H */
-#ifdef DEBUG
 #include <assert.h>
-#else
-#define assert(x)
-#endif
 #include <stdint.h>
 
 #ifndef streq