Commit 830e0964 authored by Adam Mills's avatar Adam Mills
Browse files

Fixing warnings on OSX with clang

parent c57d108c
Loading
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -2352,7 +2352,6 @@ static ivas_error decodeVoIP(
    uint32_t nextPacketRcvTime_ms = 0;
    uint32_t systemTime_ms = 0;
    uint32_t systemTimeInc_ms = (uint32_t) JBM_FRONTEND_FETCH_FRAMESIZE_MS;
    int32_t nFramesWritten = 0;
    int32_t nFramesFed = 0;


@@ -2710,7 +2709,6 @@ static ivas_error decodeVoIP(

        frame++;
        systemTime_ms += systemTimeInc_ms;
        nFramesWritten++;

#ifdef WMOPS
        update_mem();
+1 −1
Original line number Diff line number Diff line
@@ -3485,7 +3485,7 @@ static void parseSceneDescriptionFile(
    return;
}

static void printSupportedAudioConfigs()
static void printSupportedAudioConfigs( void )
{
    uint16_t i;
    const char *supportedFormats[] = {
+1 −1
Original line number Diff line number Diff line
@@ -387,7 +387,7 @@ int16_t dbgread(
 * Closes opened files and frees allocated memory
 *--------------------------------------------------------------------*/

void dbgclose()
void dbgclose( void )
{
    int16_t i;

+1 −1
Original line number Diff line number Diff line
@@ -423,7 +423,7 @@ void snr_celp(
 * Finalizes and presents accumulated SNR data
 *--------------------------------------------------------------------*/

void print_snr()
void print_snr( void )
{
    int16_t i;
    double snr, segsnr, wsegsnr;
+8 −13
Original line number Diff line number Diff line
@@ -731,43 +731,38 @@ int32_t DecodeFrame( CQMFDecoder *psCQMFDecoder,
                     float ***pppfCQMFImag )
{
    int32_t n;
    int32_t iBitsRead;

    iBitsRead = 0;

    iBitsRead +=
    ReadHeaderInformation( &psCQMFDecoder->iNumBands, pBits );

    if ( psCQMFDecoder->iChannels == 2 )
    {
        iBitsRead += ReadMSInformation(
        ReadMSInformation(
            psCQMFDecoder->iNumBands, &psCQMFDecoder->iMSMode,
            psCQMFDecoder->piMSFlags,
            psCQMFDecoder->piLRPhaseDiffs, psCQMFDecoder->piMSPredCoefs,
            pBits );
    }
    iBitsRead += ReadPredictors( psCQMFDecoder->psPredictionDecoder,
    ReadPredictors( psCQMFDecoder->psPredictionDecoder,
                                 pBits );


    iBitsRead += ReadGroupInformation(
    ReadGroupInformation(
        psCQMFDecoder->iChannels, psCQMFDecoder->iNumBlocks,
        &psCQMFDecoder->iCommonGrouping, psCQMFDecoder->piNumGroups,
        psCQMFDecoder->ppiGroupLengths,
        pBits );

    iBitsRead += ReadRMSEnvelope(
    ReadRMSEnvelope(
        psCQMFDecoder->iChannels, (const int32_t *) psCQMFDecoder->piNumGroups,
        psCQMFDecoder->iNumBands, psCQMFDecoder->pppiRMSEnvelope,
        pBits );

#ifdef ENABLE_PMOD_ADJUST
    iBitsRead +=
    ReadPmodInformation( psCQMFDecoder->ppiHiSMRFlags, psCQMFDecoder->psBSRead,
                             psCQMFDecoder->iChannels, psCQMFDecoder->iNumBands );
#endif

    iBitsRead += ReadAllocInformation( &psCQMFDecoder->iAllocOffset,
    ReadAllocInformation( &psCQMFDecoder->iAllocOffset,
                                       pBits );

    if ( psCQMFDecoder->iChannels == 2 &&
@@ -807,7 +802,7 @@ int32_t DecodeFrame( CQMFDecoder *psCQMFDecoder,

    for ( n = 0; n < psCQMFDecoder->iChannels; n++ )
    {
        iBitsRead += ReadCQMFData(
        ReadCQMFData(
            psCQMFDecoder->piNumGroups[n],
            (const int32_t *) psCQMFDecoder->ppiGroupLengths[n],
            psCQMFDecoder->iNumBands, psCQMFDecoder->piBandwidths,
Loading