fedora 24
obsolete weakness #272


Weakness Breakdown


An obsolete weakness occurs when someone uses deprecated or obsolete functions when building a system. As a programming language evolves, some functions occasionally become obsolete.

Warning code(s):

This C routine is considered obsolete.

File Name:



The highlighted line of code below is the trigger point of this particular Fedora 24 obsolete weakness.

  * @return Always returns #FLUID_OK
fluid_player_set_bpm(fluid_player_t *player, int bpm)
    return fluid_player_set_midi_tempo(player, (int) ((double) 60 * 1e6 / bpm));

 * Wait for a MIDI player to terminate (when done playing).
 * @param player MIDI player instance
 * @return #FLUID_OK on success, #FLUID_FAILED otherwise
fluid_player_join(fluid_player_t *player)
    if (player->system_timer) {
        return fluid_timer_join(player->system_timer);
    } else if (player->sample_timer) {
        /* Busy-wait loop, since there's no thread to wait for... */
        while (player->status != FLUID_PLAYER_DONE) {
#if defined(WIN32)
    return FLUID_OK;

 *       MIDI PARSER

 * new_fluid_midi_parser
fluid_midi_parser_t *
new_fluid_midi_parser ()
    fluid_midi_parser_t *parser;
    parser = FLUID_NEW(fluid_midi_parser_t);
    if (parser == NULL) {
        FLUID_LOG(FLUID_ERR, "Out of memory");
        return NULL;
    parser->status = 0; /* As long as the status is 0, the parser won't do anything -> no need to initialize all the fields. */
    return parser; 

The registered trademark Linux® is used pursuant to a sublicense from the Linux Foundation, the exclusive licensee of Linus Torvalds, owner of the mark on a world­wide basis.