Fix [30]: Add PRINT_ENABLED around o/w unref'd vars (#31)

This commit is contained in:
shuegr-personal
2020-01-15 21:54:35 -08:00
committed by Steve Karg
parent e0c2a452e2
commit 158ff5b8f2
3 changed files with 6 additions and 0 deletions
+2
View File
@@ -68,7 +68,9 @@ void handler_ccov_notification(uint8_t *service_request,
BACNET_NPDU_DATA npdu_data;
BACNET_COV_DATA cov_data;
BACNET_PROPERTY_VALUE property_value[MAX_COV_PROPERTIES];
#if PRINT_ENABLED
BACNET_PROPERTY_VALUE *pProperty_value = NULL;
#endif
int len = 0;
int pdu_len = 0;
int bytes_sent = 0;
+2
View File
@@ -198,7 +198,9 @@ void rpm_ack_print_data(BACNET_READ_ACCESS_DATA *rpm_data)
BACNET_OBJECT_PROPERTY_VALUE object_value; /* for bacapp printing */
BACNET_PROPERTY_REFERENCE *listOfProperties;
BACNET_APPLICATION_DATA_VALUE *value;
#if PRINT_ENABLED
bool array_value = false;
#endif
if (rpm_data) {
#if PRINT_ENABLED
+2
View File
@@ -61,7 +61,9 @@ void handler_ucov_notification(
{
BACNET_COV_DATA cov_data;
BACNET_PROPERTY_VALUE property_value[MAX_COV_PROPERTIES];
#if PRINT_ENABLED
BACNET_PROPERTY_VALUE *pProperty_value = NULL;
#endif
int len = 0;
/* src not needed for this application */