diff libfdproto/messages.c @ 1539:d25ce064c667

Correctly fix compiler warnings ASSERT() is only used #ifndef NDEBUG not #ifdef DEBUG Fixes Debug build.
author Luke Mewburn <luke@mewburn.net>
date Thu, 30 Apr 2020 15:24:47 +1000
parents 915450ee91c7
children 19ab8ac08a36
line wrap: on
line diff
--- a/libfdproto/messages.c	Mon Apr 20 15:00:11 2020 +1000
+++ b/libfdproto/messages.c	Thu Apr 30 15:24:47 2020 +1000
@@ -2284,7 +2284,7 @@
 	/* First, check if we already have a model. */
 	if (msg->msg_model != NULL) {
 		/* Check if this model is still valid for the message data */
-#ifdef DEBUG
+#ifndef NDEBUG
 		enum dict_object_type 	 dicttype;
 #endif
 		struct dict_cmd_data     data;
"Welcome to our mercurial repository"