proposal for better compile time error checking

Green, Paul Paul.Green at
Wed Apr 30 14:25:33 GMT 2003

I'm a little unclear on whether the changes you are contemplating would
still allow the source code to be built by a C compiler.  I don't have a
problem with source code that can be built by either C or C++, but I think
we need a lot more discussion, and some research, before dropping the
ability to build Samba with C.  I could build Samba either way on Stratus
VOS, but I wonder whether that is true for all of the various platforms.


-----Original Message-----
From: Claudia Moroder [mailto:claudiamoroder at]
Sent: Wednesday, April 30, 2003 10:19 AM
To: samba-technical at
Subject: proposal for better compile time error checking


I think it would be a good idea if the developers would use c++ compiler
instread of gcc when compiing the samba sources. c++ does a better job
errors at compile time ( signed to unsigned assignment ecc. ) even
instandard c

The drawback is that small changes to the source are necessary:

- casting where pointers are returned and assigned to pointers of different

- variables with the names "class", "template" and "new" must be changed.

- in 2-3 places #ifdefs are necessary

I would like to get feedback to my proposal so I know if I should begin to
create patches to adapt the code.


This mail has been sent using Alpikom webmail system

More information about the samba-technical mailing list