Subject: [PATCH] configure.ac: Add -DNDEBUG to CPPFLAGS in non-debug builds

[PATCH] configure.ac: Add -DNDEBUG to CPPFLAGS in non-debug builds

From: Peter Stuge <peter_at_stuge.se>
Date: Thu, 27 Oct 2016 22:34:35 +0200

There are a few uses of assert() in channel.c, sftp.c and transport.c.

---
 configure.ac | 1 +
 1 file changed, 1 insertion(+)
diff --git a/configure.ac b/configure.ac
index c26a52b..fe290ec 100644
--- a/configure.ac
+++ b/configure.ac
@@ -213,6 +213,7 @@ AC_HELP_STRING([--disable-debug],[Disable debug options]),
 [ case "$enable_debug" in
   no)
        AC_MSG_RESULT(no)
+       CPPFLAGS="$CPPFLAGS -DNDEBUG"
        ;;
   *)   AC_MSG_RESULT(yes)
     enable_debug=yes
-- 
_______________________________________________
libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2016-10-27