fix compilation warnings

This commit is contained in:
Robert Bendun 2023-01-15 01:39:42 +01:00
parent ddad9eafba
commit 253e9f9700
2 changed files with 2 additions and 2 deletions

View File

@ -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')) {

View File

@ -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;
}