Commit 0cd6c866 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

[cleanup] address clang warnings related to unused variables/sign comparison

parent 970649f1
Loading
Loading
Loading
Loading
Loading
+8 −17
Original line number Diff line number Diff line
@@ -443,7 +443,7 @@ char *create_hrtf_crend( RENDERER_TYPE rend_type, BINAURAL_INPUT_AUDIO_CONFIG in
    crend_hrtf_tables_pointers tabs_ptrs;

    /*   uint16_t max_num_iterations, max_num_iterations_diffuse, index_frequency_max_diffuse; */
    uint16_t *pIndex_rptr, iChan, iIR;
    uint16_t iChan, iIR;
    uint32_t hrtf_data_size, data_size_tmp;
    uint32_t iIter, iIndex;
    /* uint32_t total_num_fsamp_per_iteration, iIter, iIndex;
@@ -575,8 +575,6 @@ char *create_hrtf_crend( RENDERER_TYPE rend_type, BINAURAL_INPUT_AUDIO_CONFIG in
        // pIndex_frequency_max_diffuse (the size depends on num_iterations_diffuse)
        for ( iChan = 0; iChan < BINAURAL_CHANNELS; iChan++ )
        {
            pIndex_rptr = tabs_ptrs.pIndex_frequency_max_diffuse + iChan * tabs_dims.max_num_iterations_diffuse;

            data_size_tmp = tabs_ptrs.num_iterations_diffuse[iChan] * sizeof( uint16_t );
            memcpy( hrtf_wptr, tabs_ptrs.pIndex_frequency_max_diffuse, data_size_tmp );
            hrtf_wptr += data_size_tmp;
@@ -807,14 +805,12 @@ char *create_hrtf_fastconv( RENDERER_TYPE rend_type, BINAURAL_INPUT_AUDIO_CONFIG
    binaural_convbands = BINAURAL_CONVBANDS;

    if ( input_cfg == BINAURAL_INPUT_AUDIO_CONFIG_COMBINED )
    {
        if ( rend_type == RENDERER_BINAURAL_FASTCONV )
    {
        latency_s = FASTCONV_HRIR_latency_s;
        hrtf_channels = HRTF_LS_CHANNELS;
        num_taps = BINAURAL_NTAPS;
        }
        else if ( rend_type == RENDERER_BINAURAL_FASTCONV_ROOM )

        if ( rend_type == RENDERER_BINAURAL_FASTCONV_ROOM )
        {
            latency_s = FASTCONV_BRIR_latency_s;
            hrtf_channels = HRTF_LS_CHANNELS;
@@ -1059,8 +1055,6 @@ char *create_hrtf_parametric( int32_t *hrtf_size )
    uint32_t data_size_tmp;

    int16_t i, j;
    uint16_t hrtf_channels;
    uint16_t cldfb_nchan_max;

    hrtf_data_size = 0;

@@ -1548,9 +1542,9 @@ int16_t check_bin_file( FILE *hrtf_bin_file )
{
#ifdef FILE_HEADER
    int i;
    long filePos;
    char *file_header_rptr;
    int32_t ctrlFileSize, fileSize, file_header_size, hrtf_header_size, hrtf_data_size, hrtf_data_size_max;
    int32_t ctrlFileSize, fileSize, file_header_size;
    uint32_t hrtf_data_size_max;
    int16_t nbHRTF;
#endif
    char *file_header, *hrtf_data, *hrtf_data_rptr;
@@ -1692,7 +1686,6 @@ int16_t check_bin_file( FILE *hrtf_bin_file )
int16_t check_hrtf_data( RENDERER_TYPE rend_type, BINAURAL_INPUT_AUDIO_CONFIG input_cfg, int32_t frequency, char *hrtf_data_in, int32_t hrtf_size_in )
{
    int16_t result;
    uint16_t *pIndex_rptr;
    int32_t hrtf_data_size, ctrl_size, iChan, iIR, iIndex, iIter;
    float *coeff_rptr;
    char *hrtf_data_in_rptr;
@@ -1810,8 +1803,6 @@ int16_t check_hrtf_data( RENDERER_TYPE rend_type, BINAURAL_INPUT_AUDIO_CONFIG in
        // pIndex_frequency_max_diffuse (the size depends on num_iterations_diffuse)
        for ( iChan = 0; iChan < BINAURAL_CHANNELS; iChan++ )
        {
            pIndex_rptr = tabs_ptrs.pIndex_frequency_max_diffuse + iChan * tabs_dims.max_num_iterations_diffuse;

            ctrl_size = tabs_ptrs.num_iterations_diffuse[iChan] * sizeof( uint16_t );
            if ( memcmp( tabs_ptrs.pIndex_frequency_max_diffuse, hrtf_data_in_rptr, ctrl_size ) != 0 )
            {