httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Marr <gr...@alum.wpi.edu>
Subject Re: checking for EWOULDBLOCK/EAGAIN *inside* APR
Date Fri, 07 Apr 2000 19:39:01 GMT
At 03:18 PM 04/07/2000, Ben Hyde wrote:
>Jeff Trawick <trawickj@bellsouth.net> writes:
> > Ben mentioned a concern that something like "(errno == EAGAIN || 
> errno
> > == EWOULDBLOCK)" might lead to a compiler warning.  gcc -Wall 
> doesn't
> > emit one, however.  If we find a better solution later, we can 
> always
> > handle it then.
>
>I believe -Wall notices:
>
>   switch(errno){
>   case EAGAIN:
>   case EWOULDBLOCK:
>     ...
>   ...
>  }
>
>Not that it's imporant.

FYI, this is an error in VC++:

Compiler Error C2196
case value 'value' already used
A case value in a switch statement can be used only once.

--
Greg Marr
gregm@alum.wpi.edu
"We thought you were dead."
"I was, but I'm better now." - Sheridan, "The Summoning"


Mime
View raw message