summaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2015-01-01 16:05:41 +0300
committerIgor Pashev <pashev.igor@gmail.com>2015-01-01 16:05:41 +0300
commit789cad1ff55ad10295fcda7bbf24944dd67f3bb3 (patch)
tree39aed3a9ebb9d25967bf1db5f17642deb7703d25 /sysdeps
parent695890ed1291a3901c9db3155b855b5676d6afc7 (diff)
downloadglibc-master.tar.gz
Suppress warning (-Wint-to-pointer-cast)HEADmaster
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/solaris2/kopensolaris-gnu/mlockall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/solaris2/kopensolaris-gnu/mlockall.c b/sysdeps/unix/sysv/solaris2/kopensolaris-gnu/mlockall.c
index 52018d30b2..5ecf1e6299 100644
--- a/sysdeps/unix/sysv/solaris2/kopensolaris-gnu/mlockall.c
+++ b/sysdeps/unix/sysv/solaris2/kopensolaris-gnu/mlockall.c
@@ -23,5 +23,5 @@
int
mlockall (int flags)
{
- return memcntl (0, 0, MC_LOCKAS, (caddr_t)flags, 0, 0);
+ return memcntl (0, 0, MC_LOCKAS, (caddr_t)(intptr_t)flags, 0, 0);
}