Fixed some compilation warnings.

merge-requests/1/head
Henning Geinitz 2006-01-05 21:16:26 +00:00
rodzic 57cb277087
commit 1bce75400e
2 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -70,6 +70,7 @@
backend. This actually works with current sane-backends.
* PROBLEMS: Removed pnm problem description. It's not relevant for
normal users and explained in the sane-pnm man page anyway.
* backend/genesys.c: Fixed some compilation warnings.
2006-01-03 Henning Meier-Geinitz <henning@meier-geinitz.de>

Wyświetl plik

@ -2501,7 +2501,8 @@ genesys_dark_white_shading_calibration (Genesys_Device * dev)
u_int16_t pixels_per_line;
u_int8_t *calibration_data, *average_white, *average_dark;
u_int8_t channels;
unsigned int x, y, avgpixels;
unsigned int x;
int y;
u_int32_t dark, white, dark_sum, white_sum, dark_count, white_count, col, dif;
@ -2686,7 +2687,7 @@ genesys_send_shading_coefficient (Genesys_Device * dev)
u_int8_t channels;
int x, j, o;
unsigned int i;
unsigned int coeff, target_code, val, avgpixels, dk, words_per_color;
unsigned int coeff, target_code, val, avgpixels, dk, words_per_color = 0;
DBG (DBG_proc, "genesys_send_shading_coefficient\n");