mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-01 00:21:14 +00:00
silence compiler warnings
This commit is contained in:
parent
e53230bb2f
commit
c8d1d0fbde
5 changed files with 6 additions and 6 deletions
|
@ -823,7 +823,7 @@ fluid_handle_reverbsetlevel(fluid_synth_t* synth, int ac, char** av, fluid_ostre
|
|||
return -1;
|
||||
}
|
||||
level = atof(av[0]);
|
||||
if (abs(level) > 30){
|
||||
if (fabs(level) > 30){
|
||||
fluid_ostream_printf(out, "rev_setlevel: Value too high! (Value of 10 =+20 dB)\n");
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -479,7 +479,7 @@ fluid_midi_file_read_event(fluid_midi_file *mf, fluid_track_t *track)
|
|||
|
||||
mf->running_status = status;
|
||||
|
||||
if ((status == MIDI_SYSEX)) { /* system exclusif */
|
||||
if (status == MIDI_SYSEX) { /* system exclusif */
|
||||
/* read the length of the message */
|
||||
if (fluid_midi_file_read_varlen(mf) != FLUID_OK) {
|
||||
return FLUID_FAILED;
|
||||
|
|
|
@ -281,7 +281,7 @@ void fluid_iir_filter_calc(fluid_iir_filter_t* iir_filter,
|
|||
fres = 5;
|
||||
|
||||
/* if filter enabled and there is a significant frequency change.. */
|
||||
if ((abs (fres - iir_filter->last_fres) > 0.01))
|
||||
if (fabs (fres - iir_filter->last_fres) > 0.01)
|
||||
{
|
||||
/* The filter coefficients have to be recalculated (filter
|
||||
* parameters have changed). Recalculation for various reasons is
|
||||
|
|
|
@ -1039,7 +1039,7 @@ fluid_defpreset_import_sfont(fluid_defpreset_t* preset,
|
|||
fluid_preset_zone_t* zone;
|
||||
int count;
|
||||
char zone_name[256];
|
||||
if ((sfpreset->name != NULL) && (FLUID_STRLEN(sfpreset->name) > 0)) {
|
||||
if (FLUID_STRLEN(sfpreset->name) > 0) {
|
||||
FLUID_STRCPY(preset->name, sfpreset->name);
|
||||
} else {
|
||||
FLUID_SPRINTF(preset->name, "Bank%d,Preset%d", sfpreset->bank, sfpreset->prenum);
|
||||
|
@ -1440,7 +1440,7 @@ fluid_inst_import_sfont(fluid_inst_t* inst, SFInst *sfinst, fluid_defsfont_t* sf
|
|||
int count;
|
||||
|
||||
p = sfinst->zone;
|
||||
if ((sfinst->name != NULL) && (FLUID_STRLEN(sfinst->name) > 0)) {
|
||||
if (FLUID_STRLEN(sfinst->name) > 0) {
|
||||
FLUID_STRCPY(inst->name, sfinst->name);
|
||||
} else {
|
||||
FLUID_STRCPY(inst->name, "<untitled>");
|
||||
|
|
|
@ -888,7 +888,7 @@ fluid_istream_gets (fluid_istream_t in, char* buf, int len)
|
|||
return 0;
|
||||
}
|
||||
|
||||
if ((c == '\n'))
|
||||
if (c == '\n')
|
||||
{
|
||||
*buf++ = 0;
|
||||
return 1;
|
||||
|
|
Loading…
Reference in a new issue