On 7/18/07, Martin Koller <[EMAIL PROTECTED]> wrote: > is there any interest in allowing to compile wz with a C++ compiler
If you look at the coding style document (in the wiki), you'll see we require that patches remain C++ compatible. > and allowing future additions to use C++ ? Not unless absolutely necessary. > I made a simple check by compiling wz with g++ to see what happens. > There are only about 250 errors, which are mainly invalid datatype conversions > (e.g. not casting the returnvalue from malloc() to a specific pointer type or > assigning an int to an enum type) Compile with -fpermissive to make (hopefully all of) them go away. > IMHO those things should be corrected even for plain C compilation, as it's > kind of ugly and might hide bugs. No, you should not cast the value returned from malloc in C... - Per _______________________________________________ Warzone-dev mailing list [email protected] https://mail.gna.org/listinfo/warzone-dev
