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

fix functions which do not have a return statement at the end which causes issues with WMC tool

parent 22de76b1
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -277,6 +277,8 @@ static Word16 get_panning_tangent_gain(
            lim_r = sub( idx, 1 ); /*Q0*/
        }
    }
    assert("should not be reached, added to avoid issues with WMC tool instrumentation");
    return 0; /* should not be reached, added to avoid issues with WMC tool instrumentation */
}

static Word16 get_panning(
+6 −0
Original line number Diff line number Diff line
@@ -86,6 +86,8 @@ int lc3plus_samplerate_supported(int samplerate)
#endif
    default: return 0;
    }
    assert("should not be reached, added to avoid issues with WMC tool instrumentation");
    return 0; /* should not be reached, added to avoid issues with WMC tool instrumentation */
}

static int lc3plus_plc_mode_supported(LC3PLUS_PlcMode plc_mode)
@@ -96,6 +98,8 @@ static int lc3plus_plc_mode_supported(LC3PLUS_PlcMode plc_mode)
        return 1;
    default: return 0;
    }
    assert("should not be reached, added to avoid issues with WMC tool instrumentation");
    return 0; /* should not be reached, added to avoid issues with WMC tool instrumentation */
}

static int lc3plus_frame_size_supported(int frame_dms)
@@ -111,6 +115,8 @@ static int lc3plus_frame_size_supported(int frame_dms)
            return 1;
    default: return 0;
    }
    assert("should not be reached, added to avoid issues with WMC tool instrumentation");
    return 0; /* should not be reached, added to avoid issues with WMC tool instrumentation */
}

static int null_in_list(void **list, int n)