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

Re: Whats the deal with subversion/libsvn_wc/log.c:start_handler?

From: Branko Èibej <brane_at_xbc.nu>
Date: 2000-11-07 00:19:56 CET

Karl Fogel wrote:

> Well, signal_error() returns void, so returning the result of a call
> to signal_error() from a calling function that also returns void would
> be okay...? Or not...?

Oh yes, in C++ it would be fine. Not in C, unfortunately.

(Interesting note: this wias added in C++ because of templates, so that
you could write, e.g.,

    template<typename T> T bla () { return (T) foo; }
and then go ahead and use bla<void>() without having to specialise it.)

> Um, I don't really know, I was just making it up as I went along.
>
> If it's not valid C, I'll get rid of the "return ". :-)

Well, it's just that MSVC is shouting its head off about it, and I'd
like to have as few warnings as possible. Probably GCC would, too, with
-pedantic, but I haven't tried.

-- 
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:14 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.