Return-Path: Delivered-To: apmail-new-httpd-archive@apache.org Received: (qmail 7715 invoked by uid 500); 7 Apr 2000 19:40:58 -0000 Mailing-List: contact new-httpd-help@apache.org; run by ezmlm Precedence: bulk X-No-Archive: yes Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list new-httpd@apache.org Received: (qmail 7704 invoked from network); 7 Apr 2000 19:40:56 -0000 Message-Id: <4.3.1.2.20000407153716.00b03cc0@pop.ma.ultranet.com> X-Sender: gregmm@pop.ma.ultranet.com X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Date: Fri, 07 Apr 2000 15:39:01 -0400 To: new-httpd@apache.org From: Greg Marr Subject: Re: checking for EWOULDBLOCK/EAGAIN *inside* APR In-Reply-To: <87pus11zzd.fsf@pobox.com> References: <200004071856.OAA20875@k5.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N At 03:18 PM 04/07/2000, Ben Hyde wrote: >Jeff Trawick 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"