Mercurial > hg > freeDiameter
diff libfdproto/messages.c @ 1405:3cbe458fbfa9
Fix compiler warnings
author | Luke Mewburn <luke@mewburn.net> |
---|---|
date | Tue, 18 Feb 2020 16:23:53 +1100 |
parents | 82b386714795 |
children | 67c263056d78 |
line wrap: on
line diff
--- a/libfdproto/messages.c Tue Feb 11 20:01:06 2020 +1100 +++ b/libfdproto/messages.c Tue Feb 18 16:23:53 2020 +1100 @@ -2284,7 +2284,9 @@ /* 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 enum dict_object_type dicttype; +#endif struct dict_cmd_data data; ASSERT(((fd_dict_gettype(msg->msg_model, &dicttype) == 0) && (dicttype == DICT_COMMAND))); (void)fd_dict_getval( msg->msg_model, &data);