lexmark: fix [-Wmaybe-uninitialized] compiler warning

This adds a default handler to switch statement so low_get_start_loc()
bails before the start_600 variable is used.
merge-requests/1/head
Olaf Meeuwissen 2015-12-26 17:36:57 +09:00
rodzic 068c3bb75d
commit 7c0f5ec66c
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -2369,6 +2369,9 @@ low_get_start_loc (SANE_Int resolution, SANE_Int * vert_start,
return SANE_STATUS_INVAL;
}
break;
default:
/* If we're here we have an unknown dev->model.sensor_type */
return SANE_STATUS_INVAL;
}
/* Calculate vertical start distance at 600dpi */
switch (resolution)