From 05e9c5757f5b54997cc371bc311a368e2862006c Mon Sep 17 00:00:00 2001 From: Patrick Grimm Date: Wed, 25 Sep 2013 01:28:15 +0200 Subject: [PATCH] fix gcc warnings --- demo/object/av.c | 2 +- demo/object/bi.c | 4 ++-- demo/object/msi.c | 4 ++-- demo/object/mso.c | 4 ++-- demo/object/msv.c | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/demo/object/av.c b/demo/object/av.c index 811af79..b4c329c 100644 --- a/demo/object/av.c +++ b/demo/object/av.c @@ -570,7 +570,7 @@ uint8_t Analog_Value_Reliability( { ANALOG_VALUE_DESCR *CurrentAV; unsigned index = 0; /* offset from instance lookup */ - uint8_t value; + uint8_t value = 0; index = Analog_Value_Instance_To_Index(object_instance); if (index < max_analog_values_int) { diff --git a/demo/object/bi.c b/demo/object/bi.c index 2e9354f..5966ced 100644 --- a/demo/object/bi.c +++ b/demo/object/bi.c @@ -1675,7 +1675,7 @@ int Binary_Input_Event_Information( unsigned index, BACNET_GET_EVENT_INFORMATION_DATA * getevent_data) { - BINARY_INPUT_DESCR *CurrentBI; + //BINARY_INPUT_DESCR *CurrentBI; bool IsNotAckedTransitions; bool IsActiveEvent; int i; @@ -1683,7 +1683,7 @@ int Binary_Input_Event_Information( /* check index */ if (index < max_binary_inputs) { - CurrentBI = &BI_Descr[index]; + //CurrentBI = &BI_Descr[index]; /* Event_State not equal to NORMAL */ IsActiveEvent = (BI_Descr[index].Event_State != EVENT_STATE_NORMAL); diff --git a/demo/object/msi.c b/demo/object/msi.c index 6cfd231..13a3587 100644 --- a/demo/object/msi.c +++ b/demo/object/msi.c @@ -1666,7 +1666,7 @@ int Multistate_Input_Event_Information( unsigned index, BACNET_GET_EVENT_INFORMATION_DATA * getevent_data) { - MULTI_STATE_INPUT_DESCR *CurrentMSI; + //MULTI_STATE_INPUT_DESCR *CurrentMSI; bool IsNotAckedTransitions; bool IsActiveEvent; int i; @@ -1674,7 +1674,7 @@ int Multistate_Input_Event_Information( /* check index */ if (index < max_multi_state_inputs_int) { - CurrentMSI = &MSI_Descr[index]; + //CurrentMSI = &MSI_Descr[index]; /* Event_State not equal to NORMAL */ IsActiveEvent = (MSI_Descr[index].Event_State != EVENT_STATE_NORMAL); diff --git a/demo/object/mso.c b/demo/object/mso.c index 4f92c5a..e470764 100644 --- a/demo/object/mso.c +++ b/demo/object/mso.c @@ -1666,7 +1666,7 @@ int Multistate_Output_Event_Information( unsigned index, BACNET_GET_EVENT_INFORMATION_DATA * getevent_data) { - MULTI_STATE_OUTPUT_DESCR *CurrentMSO; + //MULTI_STATE_OUTPUT_DESCR *CurrentMSO; bool IsNotAckedTransitions; bool IsActiveEvent; int i; @@ -1674,7 +1674,7 @@ int Multistate_Output_Event_Information( /* check index */ if (index < max_multi_state_outputs_int) { - CurrentMSO = &MSO_Descr[index]; + //CurrentMSO = &MSO_Descr[index]; /* Event_State not equal to NORMAL */ IsActiveEvent = (MSO_Descr[index].Event_State != EVENT_STATE_NORMAL); diff --git a/demo/object/msv.c b/demo/object/msv.c index 09c498b..36890c9 100644 --- a/demo/object/msv.c +++ b/demo/object/msv.c @@ -1715,7 +1715,7 @@ int Multistate_Value_Event_Information( unsigned index, BACNET_GET_EVENT_INFORMATION_DATA * getevent_data) { - MULTI_STATE_VALUE_DESCR *CurrentMSV; + //MULTI_STATE_VALUE_DESCR *CurrentMSV; bool IsNotAckedTransitions; bool IsActiveEvent; int i; @@ -1723,7 +1723,7 @@ int Multistate_Value_Event_Information( /* check index */ if (index < max_multi_state_values_int) { - CurrentMSV = &MSV_Descr[index]; + //CurrentMSV = &MSV_Descr[index]; /* Event_State not equal to NORMAL */ IsActiveEvent = (MSV_Descr[index].Event_State != EVENT_STATE_NORMAL);