[sane-devel] Strange warning when compiling bh.c on Solaris

Petter Reinholdtsen pere@hungry.com
Tue, 9 Apr 2002 12:25:40 +0200


Hello

You are listed as the current maintainer of the coolscan backend in
SANE.  I tested the current CVS version on Solaris, and got several
warnings.  I think several of these are plain typos (the semicolon
after functions for instance), and severals are just signed/unsigned
typos.  You should consider fixing all of these.

"../../backend/coolscan-scsidef.h", line 160: warning: initialization type mismatch
"../../backend/coolscan-scsidef.h", line 194: warning: initialization type mismatch
"../../backend/coolscan-scsidef.h", line 204: warning: initialization type mismatch
"../../backend/coolscan-scsidef.h", line 214: warning: initialization type mismatch
"../../backend/coolscan-scsidef.h", line 227: warning: initialization type mismatch
"../../backend/coolscan-scsidef.h", line 241: warning: initialization type mismatch
"../../backend/coolscan-scsidef.h", line 257: warning: initialization type mismatch
"../../backend/coolscan-scsidef.h", line 274: warning: initialization type mismatch
"../../backend/coolscan-scsidef.h", line 516: warning: initialization type mismatch
"../../backend/coolscan-scsidef.h", line 588: warning: initialization type mismatch
"../../backend/coolscan-scsidef.h", line 610: warning: initialization type mismatch
"../../backend/coolscan-scsidef.h", line 635: warning: initialization type mismatch
"../../backend/coolscan-scsidef.h", line 705: warning: initialization type mismatch
"../../backend/coolscan-scsidef.h", line 748: warning: initialization type mismatch
"../../backend/coolscan-scsidef.h", line 764: warning: initialization type mismatch
"../../backend/coolscan-scsidef.h", line 775: warning: initialization type mismatch
"../../backend/coolscan-scsidef.h", line 799: warning: initialization type mismatch
"../../backend/coolscan-scsidef.h", line 809: warning: initialization type mismatch
"../../backend/coolscan.c", line 133: warning: argument #3 is incompatible with prototype:
	prototype: pointer to unsigned char : "../../backend/coolscan.c", line 124
	argument : pointer to char
"../../backend/coolscan.c", line 147: warning: argument #3 is incompatible with prototype:
	prototype: pointer to unsigned char : "../../backend/coolscan.c", line 124
	argument : pointer to char
"../../backend/coolscan.c", line 157: warning: argument #1 is incompatible with prototype:
	prototype: pointer to unsigned char : "../../backend/coolscan-scsidef.h", line 71
	argument : pointer to char
"../../backend/coolscan.c", line 395: warning: argument #2 is incompatible with prototype:
	prototype: pointer to char : "../../backend/coolscan.c", line 128
	argument : pointer to unsigned char
"../../backend/coolscan.c", line 413: warning: argument #2 is incompatible with prototype:
	prototype: pointer to char : "../../backend/coolscan.c", line 128
	argument : pointer to unsigned char
"../../backend/coolscan.c", line 446: warning: argument #2 is incompatible with prototype:
	prototype: pointer to char : "../../backend/coolscan.c", line 128
	argument : pointer to unsigned char
"../../backend/coolscan.c", line 478: warning: argument #1 is incompatible with prototype:
	prototype: pointer to unsigned char : "../../backend/coolscan-scsidef.h", line 55
	argument : pointer to char
"../../backend/coolscan.c", line 479: warning: argument #1 is incompatible with prototype:
	prototype: pointer to unsigned char : "../../backend/coolscan-scsidef.h", line 95
	argument : pointer to char
"../../backend/coolscan.c", line 481: warning: argument #4 is incompatible with prototype:
	prototype: pointer to char : "../../backend/coolscan.c", line 128
	argument : pointer to unsigned char
"../../backend/coolscan.c", line 501: warning: argument #2 is incompatible with prototype:
	prototype: pointer to char : "../../backend/coolscan.c", line 128
	argument : pointer to unsigned char
"../../backend/coolscan.c", line 520: warning: argument #2 is incompatible with prototype:
	prototype: pointer to char : "../../backend/coolscan.c", line 128
	argument : pointer to unsigned char
"../../backend/coolscan.c", line 697: warning: argument #2 is incompatible with prototype:
	prototype: pointer to char : "../../backend/coolscan.c", line 128
	argument : pointer to unsigned char
"../../backend/coolscan.c", line 829: warning: argument #2 is incompatible with prototype:
	prototype: pointer to char : "../../backend/coolscan.c", line 128
	argument : pointer to unsigned char
"../../backend/coolscan.c", line 845: warning: argument #4 is incompatible with prototype:
	prototype: pointer to char : "../../backend/coolscan.c", line 128
	argument : pointer to unsigned char
"../../backend/coolscan.c", line 877: warning: argument #1 is incompatible with prototype:
	prototype: pointer to unsigned char : "../../backend/coolscan-scsidef.h", line 95
	argument : pointer to char
"../../backend/coolscan.c", line 880: warning: argument #3 is incompatible with prototype:
	prototype: pointer to unsigned char : "../../backend/coolscan.c", line 124
	argument : pointer to char
"../../backend/coolscan.c", line 882: warning: argument #4 is incompatible with prototype:
	prototype: pointer to char : "../../backend/coolscan.c", line 128
	argument : pointer to unsigned char
"../../backend/coolscan.c", line 941: warning: argument #1 is incompatible with prototype:
	prototype: pointer to unsigned char : "../../backend/coolscan-scsidef.h", line 95
	argument : pointer to char
"../../backend/coolscan.c", line 943: warning: argument #3 is incompatible with prototype:
	prototype: pointer to unsigned char : "../../backend/coolscan.c", line 124
	argument : pointer to char
"../../backend/coolscan.c", line 945: warning: argument #4 is incompatible with prototype:
	prototype: pointer to char : "../../backend/coolscan.c", line 128
	argument : pointer to unsigned char
"../../backend/coolscan.c", line 1040: warning: argument #2 is incompatible with prototype:
	prototype: pointer to char : "../../backend/coolscan.c", line 128
	argument : pointer to unsigned char
"../../backend/coolscan.c", line 1065: warning: argument #4 is incompatible with prototype:
	prototype: pointer to char : "../../backend/coolscan.c", line 128
	argument : pointer to unsigned char
"../../backend/coolscan.c", line 1155: warning: argument #1 is incompatible with prototype:
	prototype: pointer to unsigned char : "../../backend/coolscan-scsidef.h", line 95
	argument : pointer to char
"../../backend/coolscan.c", line 1210: warning: argument #2 is incompatible with prototype:
	prototype: pointer to char : "../../backend/coolscan.c", line 128
	argument : pointer to unsigned char
"../../backend/coolscan.c", line 1254: warning: argument #1 is incompatible with prototype:
	prototype: pointer to unsigned char : "../../backend/coolscan-scsidef.h", line 95
	argument : pointer to char
"../../backend/coolscan.c", line 1256: warning: argument #4 is incompatible with prototype:
	prototype: pointer to char : "../../backend/coolscan.c", line 128
	argument : pointer to unsigned char
"../../backend/coolscan.c", line 1271: warning: argument #4 is incompatible with prototype:
	prototype: pointer to char : "../../backend/coolscan.c", line 128
	argument : pointer to unsigned char
"../../backend/coolscan.c", line 1294: warning: argument #2 is incompatible with prototype:
	prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 73
	argument : pointer to unsigned char
"../../backend/coolscan.c", line 1295: warning: argument #2 is incompatible with prototype:
	prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 73
	argument : pointer to unsigned char
"../../backend/coolscan.c", line 1296: warning: argument #2 is incompatible with prototype:
	prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 73
	argument : pointer to unsigned char
"../../backend/coolscan.c", line 1454: warning: assignment type mismatch:
	pointer to unsigned char "=" pointer to char
"../../backend/coolscan.c", line 1474: warning: argument #4 is incompatible with prototype:
	prototype: pointer to char : "../../backend/coolscan.c", line 128
	argument : pointer to unsigned char
"../../backend/coolscan.c", line 1480: warning: argument #4 is incompatible with prototype:
	prototype: pointer to char : "../../backend/coolscan.c", line 128
	argument : pointer to unsigned char
"../../backend/coolscan.c", line 1497: warning: argument #1 is incompatible with prototype:
	prototype: pointer to unsigned char : "../../backend/coolscan-scsidef.h", line 95
	argument : pointer to char
"../../backend/coolscan.c", line 1499: warning: argument #4 is incompatible with prototype:
	prototype: pointer to char : "../../backend/coolscan.c", line 128
	argument : pointer to unsigned char
"../../backend/coolscan.c", line 1501: warning: argument #1 is incompatible with prototype:
	prototype: pointer to unsigned char : "../../backend/coolscan-scsidef.h", line 95
	argument : pointer to char
"../../backend/coolscan.c", line 1503: warning: argument #4 is incompatible with prototype:
	prototype: pointer to char : "../../backend/coolscan.c", line 128
	argument : pointer to unsigned char
"../../backend/coolscan.c", line 1566: warning: argument #1 is incompatible with prototype:
	prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 72
	argument : pointer to unsigned char
"../../backend/coolscan.c", line 1570: warning: argument #1 is incompatible with prototype:
	prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 72
	argument : pointer to unsigned char
"../../backend/coolscan.c", line 1606: warning: argument #1 is incompatible with prototype:
	prototype: pointer to unsigned char : "../../backend/coolscan-scsidef.h", line 95
	argument : pointer to char
"../../backend/coolscan.c", line 1609: warning: argument #4 is incompatible with prototype:
	prototype: pointer to char : "../../backend/coolscan.c", line 128
	argument : pointer to unsigned char
"../../backend/coolscan.c", line 1703: warning: assignment type mismatch:
	pointer to char "=" pointer to unsigned char
"../../backend/coolscan.c", line 1860: warning: argument #1 is incompatible with prototype:
	prototype: pointer to char : "../../backend/coolscan.c", line 154
	argument : pointer to unsigned char
"../../backend/coolscan.c", line 2336: warning: syntax error:  empty declaration
"../../backend/coolscan.c", line 2389: warning: syntax error:  empty declaration
"../../backend/coolscan.c", line 2428: warning: syntax error:  empty declaration
"../../backend/coolscan.c", line 2532: warning: syntax error:  empty declaration
"../../backend/coolscan.c", line 2641: warning: argument #2 is incompatible with prototype:
	prototype: pointer to unsigned short : "../../backend/coolscan.c", line 2358
	argument : pointer to unsigned char
"../../backend/coolscan.c", line 2641: warning: argument #3 is incompatible with prototype:
	prototype: pointer to unsigned short : "../../backend/coolscan.c", line 2358
	argument : pointer to unsigned char