From 46c5a4235aa52aba0daf9a96e89785f1edea05d2 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Wed, 9 Aug 2006 14:40:15 +0000 Subject: silence some warnings where the compiler can't tell that the function being called will only write into the passed argument git-svn-id: http://svn.asterisk.org/svn/octasic_api/oct612x/trunk@5 537310ab-6354-42db-a3cc-247b777f7be6 --- software/octdeviceapi/oct6100api/oct6100_api/oct6100_conf_bridge.c | 4 ++-- software/octdeviceapi/oct6100api/oct6100_api/oct6100_mixer.c | 4 ++-- software/octdeviceapi/oct6100api/oct6100_api/oct6100_playout_buf.c | 2 +- software/octdeviceapi/oct6100api/oct6100_api/oct6100_tone_detection.c | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/software/octdeviceapi/oct6100api/oct6100_api/oct6100_conf_bridge.c b/software/octdeviceapi/oct6100api/oct6100_api/oct6100_conf_bridge.c index 6376a3a..1dba9a8 100644 --- a/software/octdeviceapi/oct6100api/oct6100_api/oct6100_conf_bridge.c +++ b/software/octdeviceapi/oct6100api/oct6100_api/oct6100_conf_bridge.c @@ -1902,7 +1902,7 @@ UINT32 Oct6100ApiReserveBridgeAddResources( { /* Reserve a "tap" bridge. */ tOCT6100_CONF_BRIDGE_OPEN ConfBridgeOpen; - UINT32 ulTapBridgeHndl; + UINT32 ulTapBridgeHndl = 0; Oct6100ConfBridgeOpenDef( &ConfBridgeOpen ); @@ -3238,7 +3238,7 @@ UINT32 Oct6100ConfBridgeChanRemoveSer( IN tPOCT6100_CONF_BRIDGE_CHAN_REMOVE f_pConfBridgeRemove ) { UINT16 usBridgeIndex; - UINT16 usChanIndex; + UINT16 usChanIndex = 0; UINT16 usLoadEventIndex; UINT16 usSubStoreEventIndex; UINT16 usCopyEventIndex; diff --git a/software/octdeviceapi/oct6100api/oct6100_api/oct6100_mixer.c b/software/octdeviceapi/oct6100api/oct6100_api/oct6100_mixer.c index 7f5936d..262584a 100644 --- a/software/octdeviceapi/oct6100api/oct6100_api/oct6100_mixer.c +++ b/software/octdeviceapi/oct6100api/oct6100_api/oct6100_mixer.c @@ -770,8 +770,8 @@ UINT32 Oct6100MixerCopyEventCreateSer( IN OUT tPOCT6100_INSTANCE_API f_pApiInstance, IN OUT tPOCT6100_COPY_EVENT_CREATE f_pCopyEventCreate ) { - UINT16 usCopyEventIndex; - UINT16 usMixerEventIndex; + UINT16 usCopyEventIndex = 0; + UINT16 usMixerEventIndex = 0; UINT16 usSourceChanIndex; UINT16 usDestinationChanIndex; UINT32 ulResult; diff --git a/software/octdeviceapi/oct6100api/oct6100_api/oct6100_playout_buf.c b/software/octdeviceapi/oct6100api/oct6100_api/oct6100_playout_buf.c index a5c41c0..26c6cc8 100644 --- a/software/octdeviceapi/oct6100api/oct6100_api/oct6100_playout_buf.c +++ b/software/octdeviceapi/oct6100api/oct6100_api/oct6100_playout_buf.c @@ -1947,7 +1947,7 @@ UINT32 Oct6100BufferPlayoutStartSer( IN OUT tPOCT6100_BUFFER_PLAYOUT_START f_pBufferPlayoutStart, IN UINT32 f_ulPlayoutStopEventType ) { - UINT32 ulBufferIndex; + UINT32 ulBufferIndex = 0; UINT32 ulChannelIndex; BOOL fNotifyOnPlayoutStop; UINT32 ulUserEventId; diff --git a/software/octdeviceapi/oct6100api/oct6100_api/oct6100_tone_detection.c b/software/octdeviceapi/oct6100api/oct6100_api/oct6100_tone_detection.c index 37b25ab..266061a 100644 --- a/software/octdeviceapi/oct6100api/oct6100_api/oct6100_tone_detection.c +++ b/software/octdeviceapi/oct6100api/oct6100_api/oct6100_tone_detection.c @@ -227,7 +227,7 @@ UINT32 Oct6100ToneDetectionEnableSer( { UINT32 ulChanIndex; UINT32 ulExtToneChanIndex; - UINT32 ulToneEventNumber; + UINT32 ulToneEventNumber = 0; UINT32 ulResult; @@ -582,7 +582,7 @@ UINT32 Oct6100ToneDetectionDisableSer( { UINT32 ulChanIndex; UINT32 ulExtToneChanIndex; - UINT32 ulToneEventNumber; + UINT32 ulToneEventNumber = 0; UINT32 ulResult; BOOL fDisableAll; -- cgit v1.2.3