deal with some gcc7+ warnings

This commit is contained in:
notaz 2019-12-07 21:38:32 +02:00
parent f8cd6a082b
commit 795b71c571
2 changed files with 17 additions and 10 deletions

View file

@ -192,7 +192,10 @@ void sndout_oss_setvol(int l, int r)
void sndout_oss_exit(void)
{
if (sounddev >= 0) close(sounddev); sounddev = -1;
if (mixerdev >= 0) close(mixerdev); mixerdev = -1;
if (sounddev >= 0)
close(sounddev);
if (mixerdev >= 0)
close(mixerdev);
sounddev = mixerdev = -1;
}