From 9f6e126e77e5e8c45884d128812f97bda6674750 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 13 Jan 2019 21:15:49 +0000 Subject: [PATCH] scst/include/backport.h: Suppress a compiler warning (merge r7881 from trunk) git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7883 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/backport.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/include/backport.h b/scst/include/backport.h index 72532b189..71f689efe 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -893,7 +893,7 @@ struct t10_pi_tuple { #undef DEFINE_TIMER #define DEFINE_TIMER(_name, _function) \ struct timer_list _name = TIMER_INITIALIZER( \ - (void (*)(unsigned long))(_function), 0, \ + (void (*)(unsigned long))(unsigned long)(_function), 0, \ (unsigned long)&(_name)) #endif