silence unused variable warnings

This commit is contained in:
twinaphex 2020-05-24 19:13:22 +02:00
parent 67f0df94f9
commit d9bbe604e9

View file

@ -1392,7 +1392,9 @@ struct string_list* cdrom_get_available_drives(void)
if (filestream_read_file("/proc/modules", (void**)&buf, &len)) if (filestream_read_file("/proc/modules", (void**)&buf, &len))
{ {
#ifdef CDROM_DEBUG
bool found = false; bool found = false;
#endif
struct string_list *mods = string_split(buf, "\n"); struct string_list *mods = string_split(buf, "\n");
if (mods) if (mods)
@ -1401,7 +1403,9 @@ struct string_list* cdrom_get_available_drives(void)
{ {
if (strcasestr(mods->elems[i].data, "sg ")) if (strcasestr(mods->elems[i].data, "sg "))
{ {
#ifdef CDROM_DEBUG
found = true; found = true;
#endif
break; break;
} }
} }