diff --git a/lib/bestline/bestline.c b/lib/bestline/bestline.c index b1023b1..5677d7d 100644 --- a/lib/bestline/bestline.c +++ b/lib/bestline/bestline.c @@ -1606,7 +1606,7 @@ static char *GetLineChar(int fin, int fout) { break; } } else { - write(fout, "\n", 1); + (void)write(fout, "\n", 1); break; } } else if (seq[0] == Ctrl('D')) { diff --git a/musique/midi/rt_midi.cc b/musique/midi/rt_midi.cc index c95f8dd..5501b75 100644 --- a/musique/midi/rt_midi.cc +++ b/musique/midi/rt_midi.cc @@ -37,7 +37,7 @@ try { bool midi::Rt_Midi::connect_or_create_output() try { output.emplace(); - if (auto pc = output->getPortCount()) { + if (output->getPortCount()) { output->openPort(0); return true; }