Skip to content

Commit

Permalink
fix a few -Wempty-body warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Oct 21, 2017
1 parent 481d3c9 commit c1be4a4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion timidity/common.c
Expand Up @@ -80,8 +80,9 @@ void *safe_malloc(size_t count)
void *p;

p = malloc(count);
if (p == NULL)
if (p == NULL) {
SNDDBG(("Sorry. Couldn't malloc %d bytes.\n", count));
}

return p;
}
Expand Down
3 changes: 2 additions & 1 deletion timidity/instrum.c
Expand Up @@ -342,8 +342,9 @@ static Instrument *load_instrument(MidiSong *song, char *name, int percussion,

if (strip_envelope==1)
{
if (sp->modes & MODES_ENVELOPE)
if (sp->modes & MODES_ENVELOPE) {
SNDDBG((" - Removing envelope\n"));
}
sp->modes &= ~MODES_ENVELOPE;
}
else if (strip_envelope != 0)
Expand Down
3 changes: 2 additions & 1 deletion timidity/readmidi.c
Expand Up @@ -184,8 +184,9 @@ static MidiEventList *read_midi_event(MidiSong *song)
warnings about undefined tone banks. */
case 0: control=ME_TONE_BANK; break;
case 32:
if (b!=0)
if (b!=0) {
SNDDBG(("(Strange: tone bank change 0x20%02x)\n", b));
}
else
control=ME_TONE_BANK;
break;
Expand Down

0 comments on commit c1be4a4

Please sign in to comment.