On Sun, Oct 09, 2011 at 03:01:43PM +0200, Eduard Hasenleithner wrote: > Two printf calls in xsetwacom.c were using a "%d" for output of an > expression of type size_t. Changing format string to use correct > "%zd" in order to avoid the format string warning at compile time: > > xsetwacom.c:787:2: warning: format '%d' expects argument of type 'int', > but argument 2 has type 'long unsigned int' [-Wformat] > > Signed-off-by: Eduard Hasenleithner <[email protected]> > --- > tools/xsetwacom.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c > index 2dc0c2b..99ca974 100644 > --- a/tools/xsetwacom.c > +++ b/tools/xsetwacom.c > @@ -784,11 +784,11 @@ static void list_mod(Display *dpy) > { > struct modifier *m = modifiers; > > - printf("%d modifiers are supported:\n", ARRAY_SIZE(modifiers) - 1); > + printf("%zd modifiers are supported:\n", ARRAY_SIZE(modifiers) - 1); > while(m->name) > printf(" %s\n", m++->name); > > - printf("\n%d specialkeys are supported:\n", ARRAY_SIZE(specialkeys) - > 1); > + printf("\n%zd specialkeys are supported:\n", ARRAY_SIZE(specialkeys) - > 1); > m = specialkeys; > while(m->name) > printf(" %s\n", m++->name); > -- > 1.7.5.4
c0504a8..705c6df master -> master thanks. Cheers, Peter ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ Linuxwacom-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel
