[Mesa-dev] [PATCH 3/9] Don't cast the return value of malloc/realloc
Matt Turner
mattst88 at gmail.com
Wed Sep 5 10:16:22 PDT 2012
On Wed, Sep 5, 2012 at 7:30 AM, Brian Paul <brianp at vmware.com> wrote:
> So assigning a void pointer to a non-void pointer is legal in C and illegal
> in C++. I seem to recall some people compiling all of Mesa with C++ in some
> situations in the past. Also, there were some C compiler(s) years ago that
> required these casts (can't remember which).
That would be interesting to know.
Unfortunately my experience has been that you only find out the answer
to questions like this when you break someone's build.
More information about the mesa-dev
mailing list