[lkml]   [2008]   [May]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 09/10] misc: fix returning void-valued expression warnings
On Thu, May 01, 2008 at 03:42:14PM +0300, Boaz Harrosh wrote:
> > 3. A return statement with an expression shall not appear in
> > a function whose return type is void.
> >
> Please forgive my ignorance, where is this quote from?

C99. I don't have C90 in front of me, so I can't give you exact quote from
there, but it's been explicitly banned in C90 as well.

 \ /
  Last update: 2008-05-01 14:57    [W:0.068 / U:1.908 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site