[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
Thu Nov 19 13:05:59 EST 2009


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

Andrey Vihrov <andrey.vihrov at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrey.vihrov at gmail.com

--- Comment #12 from Andrey Vihrov <andrey.vihrov at gmail.com> 2009-11-19 13:05:53 EST ---
The POSIX standard requires applications to define _POSIX_C_SOURCE before
including any POSIX headers to get function declarations, so it's not
Solaris-specific ([1]). The reason why it went unnoticed is probably because of
dependency library supplied CPPFLAGS (for example, sdl-config --cflags on
GNU/Linux outputs -D_GNU_SOURCE, which in turn defines _POSIX_C_SOURCE).

Thus, ioquake3 source code on UNIX/POSIX platforms probably should define
_POSIX_C_SOURCE to the oldest version that provides all necessary functions.
Some possible values are "199309L", "199506L", "200112L" and "200809L".

[1]
http://www.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap02.html#tag_02_02_01

-- 
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