[quake3-bugzilla] [Bug 3984] code/client/libmumblelink.c:126: warning: passing arg 1 of `munmap' from incompatible pointer type

bugzilla-daemon at icculus.org bugzilla-daemon at icculus.org
Wed Sep 16 10:15:44 EDT 2009


http://bugzilla.icculus.org/show_bug.cgi?id=3984

--- Comment #9 from Vincent Cojot <vincent at cojot.name> 2009-09-16 10:15:39 EDT ---
Well, I thought the implicit warning related to shm_open() whereas the
incompatible pointer type related to munmap().. 

Strangely enough munmap() and shm_open() are located (under Solaris) in the
same header file (/usr/include/sys/mman.h) but not within the same #ifdef's...:

#if (_POSIX_C_SOURCE > 2) || defined(_XPG4_2)
extern void *mmap(void *, size_t, int, int, int, off_t);
extern int munmap(void *, size_t);
extern int mprotect(void *, size_t, int);
extern int msync(void *, size_t, int);
#if (!defined(_XPG4_2) || (_POSIX_C_SOURCE > 2)) || defined(__EXTENSIONS__)
extern int mlock(const void *, size_t);
extern int munlock(const void *, size_t);
extern int shm_open(const char *, int, mode_t);
extern int shm_unlink(const char *);
#endif  /* (!defined(_XPG4_2) || (_POSIX_C_SOURCE > 2))... */

-- 
Configure bugmail: http://bugzilla.icculus.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the quake3-bugzilla mailing list