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
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel