kopia lustrzana https://gitlab.com/sane-project/backends
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
rodzic
068c3bb75d
commit
7c0f5ec66c
|
@ -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)
|
||||
|
|
Ładowanie…
Reference in New Issue