kopia lustrzana https://gitlab.com/sane-project/backends
artec: fix [-Wunused-but-set-variable] compiler warning
The variable is used to assign return values but is not referenced by anything itself.merge-requests/1/head
rodzic
57ae115eaf
commit
5b21a24312
|
@ -1711,7 +1711,6 @@ static SANE_Status
|
||||||
artec_get_cap_data (ARTEC_Device * dev, int fd)
|
artec_get_cap_data (ARTEC_Device * dev, int fd)
|
||||||
{
|
{
|
||||||
int cap_model, loop;
|
int cap_model, loop;
|
||||||
SANE_Status status;
|
|
||||||
u_char cap_buf[256]; /* buffer for cap data */
|
u_char cap_buf[256]; /* buffer for cap data */
|
||||||
|
|
||||||
DBG (7, "artec_get_cap_data()\n");
|
DBG (7, "artec_get_cap_data()\n");
|
||||||
|
@ -1746,11 +1745,11 @@ artec_get_cap_data (ARTEC_Device * dev, int fd)
|
||||||
|
|
||||||
dev->height = cap_data[cap_model].height;
|
dev->height = cap_data[cap_model].height;
|
||||||
|
|
||||||
status = artec_str_list_to_word_list (&dev->horz_resolution_list,
|
artec_str_list_to_word_list (&dev->horz_resolution_list,
|
||||||
cap_data[cap_model].horz_resolution_str);
|
cap_data[cap_model].horz_resolution_str);
|
||||||
|
|
||||||
status = artec_str_list_to_word_list (&dev->vert_resolution_list,
|
artec_str_list_to_word_list (&dev->vert_resolution_list,
|
||||||
cap_data[cap_model].vert_resolution_str);
|
cap_data[cap_model].vert_resolution_str);
|
||||||
|
|
||||||
dev->contrast_range.min = 0;
|
dev->contrast_range.min = 0;
|
||||||
dev->contrast_range.max = 255;
|
dev->contrast_range.max = 255;
|
||||||
|
|
Ładowanie…
Reference in New Issue