From fd16e2f2df1793c81cc7bc1652a6f8c73112d648 Mon Sep 17 00:00:00 2001 From: diego Date: Sat, 25 Aug 2007 17:09:09 +0000 Subject: warning fix: mmap_anon.c: In function 'mmap_anon': mmap_anon.c:37: warning: unused variable 'fd' git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24194 b3059339-0415-0410-9bf9-f77b7e298cf2 --- osdep/mmap_anon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'osdep') diff --git a/osdep/mmap_anon.c b/osdep/mmap_anon.c index cf90f2179a..f692e2b341 100644 --- a/osdep/mmap_anon.c +++ b/osdep/mmap_anon.c @@ -34,7 +34,6 @@ */ void *mmap_anon(void *addr, size_t len, int prot, int flags, off_t offset) { - int fd; void *result; /* From loader/ext.c: @@ -50,6 +49,7 @@ void *mmap_anon(void *addr, size_t len, int prot, int flags, off_t offset) result = mmap(addr, len, prot, flags | MAP_ANONYMOUS, -1, offset); #else /* SysV-style anonymous mapping */ + int fd; fd = open("/dev/zero", O_RDWR); if(fd < 0){ perror( "Cannot open /dev/zero for READ+WRITE. Check permissions! error: "); -- cgit v1.2.3