On Wednesday, 23 May 2007 at 22:42, Per Inge Mathisen wrote:
> On 5/23/07, Christian Ohm <[EMAIL PROTECTED]> wrote:
> > Some g++ fixes again.
> 
> Most of these are good, but do we need "fixes" of this kind?:
> 
> -       buffer = malloc(bufferSize + sizeof(soundDataBuffer));
> +       buffer = (soundDataBuffer*) malloc(bufferSize +
> sizeof(soundDataBuffer));
> 
> Please just use -fpermissive, or something, and don't clutter the code
> with useless (and hard to maintain properly) casts like this. It is
> not good C coding practice.

Oh, sorry, either I forgot the -fpermissive when changing that, or
mistook the warning message for an error. You're right, it's not needed.

-- 
The covers of this book are too far apart.
                -- Book review by Ambrose Bierce.

_______________________________________________
Warzone-dev mailing list
Warzone-dev@gna.org
https://mail.gna.org/listinfo/warzone-dev

Reply via email to