[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: BeOS PPC Compilation Fixes

From: Branko Èibej <brane_at_xbc.nu>
Date: 2000-12-04 01:12:17 CET

Sam TH wrote:

> The problem is with the const. I couldn't find anything about the
> standard either way in a quick Google search.

Conversion from non-const -> const is implicit and always allowed. If MW
is so strict as to flag that as an error, then I'm sorry to say that it
isn't a C compiler. :-(

I'm a bit concerned about all these casts going into the codebase (yeah,
we've had this discussion before). GCC is not lenient about type
conversions, either, and it wasn't complaining.

Would it be very terrible to require GCC for building Subversion, for
development, that is? Right now it won't compile out of the box with IBM
xlc on AIX, HP cc on HP-UX or Sun's Workshop cc on Solaris, so why
should we start peppering the code with casts just to cater to MW? GCC
should run quite nicely on BeOS.

Certainly we'll need to support the various native compilers for 1.0,
but this is /not/ the way to do that. Whatever portability support we
need must be provided by APR and, failing that, by our own configure tests.

-- 
Brane �ibej
    home:   <brane_at_xbc.nu>             http://www.xbc.nu/brane/
    work:   <branko.cibej_at_hermes.si>   http://www.hermes-softlab.com/
     ACM:   <brane_at_acm.org>            http://www.acm.org/
Received on Sat Oct 21 14:36:16 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.