From: Rhys Kidd Date: Sat, 6 Jun 2015 04:18:49 +0000 (+0000) Subject: Resolve remaining clang warning on OS X. Should be possible to build Valgrind on... X-Git-Tag: svn/VALGRIND_3_11_0~307 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e4d96677ef9416046d93252b41b95ff51847878a;p=thirdparty%2Fvalgrind.git Resolve remaining clang warning on OS X. Should be possible to build Valgrind on modern OS X without any warnings (note: does not hold for regression test suite). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15325 --- diff --git a/coregrind/m_libcproc.c b/coregrind/m_libcproc.c index f25320a203..539d040068 100644 --- a/coregrind/m_libcproc.c +++ b/coregrind/m_libcproc.c @@ -392,7 +392,7 @@ Int VG_(sysctl)(Int *name, UInt namelen, void *oldp, SizeT *oldlenp, void *newp, SysRes res; # if defined(VGO_darwin) res = VG_(do_syscall6)(__NR___sysctl, - name, namelen, oldp, oldlenp, newp, newlen); + (UWord)name, namelen, (UWord)oldp, (UWord)oldlenp, (UWord)newp, newlen); # else res = VG_(mk_SysRes_Error)(VKI_ENOSYS); # endif