[sane-devel] [patch] use of gcc format attribute

Henning Meier-Geinitz henning@meier-geinitz.de
Thu, 14 Feb 2002 21:02:32 +0100


Hi,

On Wed, Feb 13, 2002 at 04:11:27PM -0600, Frank Zago wrote:
> This patch allow to detect errors in DBG macros format.

Thanks. I have added it to CVS. I have fixed some of the warnings in
files I know and/or understand. This is a list of warnings for the
other files:

avision.c:618: warning: char format, different type arg (arg 3)
avision.c:618: warning: char format, different type arg (arg 4)
avision.c:618: warning: char format, different type arg (arg 5)
avision.c:756: warning: too many arguments for format
dc240.c:542: warning: too few arguments for format
dc240.c:713: warning: too many arguments for format
dc240.c:1800: warning: too few arguments for format
m3096g.c:334: warning: int format, SANE_Auth_Callback arg (arg 3)
m3096g.c:480: warning: int format, SANE_Handle arg (arg 4)
m3096g.c:490: warning: int format, pointer arg (arg 3)
m3096g.c:490: warning: int format, SANE_Handle arg (arg 4)
m3096g.c:2024: warning: char format, void arg (arg 4)
m3096g.c:3287: warning: int format, pointer arg (arg 3)
plustek-usbshading.c:1317: warning: unsigned int format, long unsigned int arg (arg 3)
plustek-usb.c:472: warning: unsigned int format, long unsigned int arg (arg 3)
plustek-usb.c:473: warning: unsigned int format, long unsigned int arg (arg 3)
plustek-usb.c:474: warning: unsigned int format, long unsigned int arg (arg 3)
plustek.c:437: warning: too many arguments for format
sm3600.c:361: warning: long unsigned int format, unsigned int arg (arg 3)
umax.c:6263: warning: char format, void arg (arg 3)
umax_pp_low.c:5001: warning: int format, pointer arg (arg 3)
umax_pp_low.c:5001: warning: format argument is not a pointer (arg 4)
umax_pp_low.c:5001: warning: too few arguments for format
umax_pp.c:1242: warning: too many arguments for format
umax_pp.c:1902: warning: too many arguments for format
umax_pp.c:2001: warning: int format, long int arg (arg 3)
umax_pp.c:2040: warning: int format, long int arg (arg 3)
umax1220u-common.c:712: warning: too many arguments for format
umax1220u-common.c:727: warning: too many arguments for format
v4l.c:986: warning: int format, pointer arg (arg 5)
v4l.c:988: warning: unsigned int format, pointer arg (arg 3)

Bye,
  Henning