On Wed, Sep 10, 2014 at 12:55:46PM -0700, Gurucharan Shetty wrote:
> MSVC complains about a void function returning a value if there is a
> statement of the form - 'return foo()' even if foo() has a void return
> type.
> 
> Signed-off-by: Gurucharan Shetty <gshe...@nicira.com>

It's a weird thing to do anyway.  I think the dispensation for it in C
it comes from C++ where occasionally one has a template that specifies a
return type and it's cleaner to be able to return a "void" value without
having to provide a special case.

I think I only write code like this in C by accident.

Acked-by: Ben Pfaff <b...@nicira.com>
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to