Mercurial > hg > freeDiameter
comparison 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 |
comparison
equal
deleted
inserted
replaced
1538:7c9214a5f095 | 1539:d25ce064c667 |
---|---|
2282 CHECK_PARAMS( CHECK_MSG(msg) ); | 2282 CHECK_PARAMS( CHECK_MSG(msg) ); |
2283 | 2283 |
2284 /* First, check if we already have a model. */ | 2284 /* First, check if we already have a model. */ |
2285 if (msg->msg_model != NULL) { | 2285 if (msg->msg_model != NULL) { |
2286 /* Check if this model is still valid for the message data */ | 2286 /* Check if this model is still valid for the message data */ |
2287 #ifdef DEBUG | 2287 #ifndef NDEBUG |
2288 enum dict_object_type dicttype; | 2288 enum dict_object_type dicttype; |
2289 #endif | 2289 #endif |
2290 struct dict_cmd_data data; | 2290 struct dict_cmd_data data; |
2291 ASSERT(((fd_dict_gettype(msg->msg_model, &dicttype) == 0) && (dicttype == DICT_COMMAND))); | 2291 ASSERT(((fd_dict_gettype(msg->msg_model, &dicttype) == 0) && (dicttype == DICT_COMMAND))); |
2292 (void)fd_dict_getval( msg->msg_model, &data); | 2292 (void)fd_dict_getval( msg->msg_model, &data); |