[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 09:43:56 EDT 2009


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

--- Comment #7 from Ryan C. Gordon <icculus at icculus.org> 2009-09-16 09:43:51 EDT ---
(In reply to comment #6)
> I wonder if instead of:
> munmap(lm, sizeof(LinkedMem));
> we shouldn't be using:
> munmap((void *)lm, sizeof(LinkedMem));

A function that takes a (void*) shouldn't need to explicitly cast a non-void
pointer to (void*).

But if it makes the compiler warning go away, I'll take it.  :)

--ryan.

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