fixed compiler warnings

merge-requests/1/head
Rolf Bensch 2013-02-09 12:43:38 +01:00
rodzic 883d191452
commit 98700ee66a
4 zmienionych plików z 9 dodań i 7 usunięć

Wyświetl plik

@ -1673,7 +1673,7 @@ type int resolution
type string mode[30]
constraint @string_list = ss->mode_list
default @s = SANE_I18N(ss->mode_list[0])
default @s = SANE_VALUE_SCAN_MODE_COLOR
title @SANE_TITLE_SCAN_MODE
desc @SANE_DESC_SCAN_MODE
cap soft_select soft_detect automatic

Wyświetl plik

@ -881,7 +881,7 @@ mp750_finish_scan (pixma_t * s)
case state_scanning:
case state_warmup:
error = abort_session (s);
if (abort_session (s) == PIXMA_ECANCELED)
if (error == PIXMA_ECANCELED)
read_error_info (s, NULL, 0);
/* fall through */
case state_finished:

Wyświetl plik

@ -497,6 +497,7 @@ static int has_ccd_sensor (pixma_t * s)
return ((s->cfg->cap & PIXMA_CAP_CCD) != 0);
}
#if 0
static int is_color (pixma_t * s)
{
return (s->param->mode == PIXMA_SCAN_MODE_COLOR);
@ -516,6 +517,7 @@ static int is_color_all (pixma_t * s)
{
return (is_color (s) || is_color_48 (s) || is_color_negative (s));
}
#endif
static int is_gray (pixma_t * s)
{
@ -1401,7 +1403,7 @@ static unsigned post_process_image_data (pixma_t * s, pixma_imagebuf_t * ib)
mp810_t *mp = (mp810_t *) s->subdriver;
unsigned c, lines, i, line_size, n, m, cw, cx, reducelines;
uint8_t *sptr, *dptr, *gptr, *cptr;
unsigned color_shift, stripe_shift, stripe_shift2, jumplines /*, height*/;
unsigned /*color_shift, stripe_shift, stripe_shift2,*/ jumplines /*, height*/;
int test;
/* For testers: */
@ -1456,9 +1458,9 @@ static unsigned post_process_image_data (pixma_t * s, pixma_imagebuf_t * ib)
/* PDBG (pixma_dbg (4, "*post_process_image_data***** mp->color_shift = %u, mp->stripe_shift = %u, , mp->stripe_shift2 = %u ***** \n",
mp->color_shift, mp->stripe_shift, mp->stripe_shift2)); */
color_shift = mp->color_shift;
stripe_shift = mp->stripe_shift;
stripe_shift2 = mp->stripe_shift2;
/*color_shift = mp->color_shift;*/
/*stripe_shift = mp->stripe_shift;*/
/*stripe_shift2 = mp->stripe_shift2;*/
jumplines = mp->jumplines;
/* height not needed here! */

Wyświetl plik

@ -72,7 +72,7 @@ int build_option_descriptors(struct pixma_sane_t *ss)
sod->constraint_type = SANE_CONSTRAINT_STRING_LIST;
sod->constraint.string_list = ss->mode_list;
OPT_IN_CTX[opt_mode].info = SANE_INFO_RELOAD_PARAMS;
opt->def.s = SANE_I18N(ss->mode_list[0]);
opt->def.s = SANE_VALUE_SCAN_MODE_COLOR;
opt->val.w = find_string_in_list(opt->def.s, sod->constraint.string_list);
opt = &(OPT_IN_CTX[opt_source]);