xsetwacom.c: In function ‘list_mod’: xsetwacom.c:908:2: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long unsigned int’ xsetwacom.c:912:2: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long unsigned int’
Cast ArrayLength to unsigned int, we won't deal with any arrays larger than UINT_MAX. Signed-off-by: Peter Hutterer <[email protected]> --- tools/xsetwacom.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c index a92c87d..10bde88 100644 --- a/tools/xsetwacom.c +++ b/tools/xsetwacom.c @@ -40,7 +40,7 @@ #define TRACE(...) \ if (verbose) fprintf(stderr, "... " __VA_ARGS__) -#define ArrayLength(a) (sizeof(a) / (sizeof((a)[0]))) +#define ArrayLength(a) ((unsigned int)(sizeof(a) / (sizeof((a)[0])))) static int verbose = False; -- 1.7.3.4 ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Linuxwacom-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel
