login
Header Space

 
 

Re: [PATCH 07/10] net: fix returning void-valued expression warnings

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Harvey Harrison <harvey.harrison@...>
Cc: David Miller <davem@...>, <akpm@...>, <jeff@...>, <linux-kernel@...>
Date: Wednesday, April 30, 2008 - 11:19 pm

On Wed, 30 Apr 2008, Harvey Harrison wrote:

I actually had a patch to sparse to _not_ complain about it, because I 
think it's one of the sane C++ extensions. I must have lost the patch and 
not sent it upstream.

So in general, I don't mind the "return void_function()" in a void 
function, I think it makes sense from a type standpoint, and sometimes 
results in cleaner code. That said, I'm also not sure it's worth breaking 
the C standard over, so I don't really mind it being fixed in the kernel 
either (but would certainly also not complain if sparse were to be changed 
to not complain)

			Linus
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 07/10] net: fix returning void-valued expression ..., Linus Torvalds, (Wed Apr 30, 11:19 pm)
speck-geostationary