From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: bruce.ellis@gmail.com, 9fans@cse.psu.edu Subject: Re: [9fans] once is enough: VOID From: Brantley Coile Date: Sat, 14 May 2005 14:35:53 -0400 In-Reply-To: <775b8d1905051411214f40e25c@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-opmaegmhhprjnlwnxcjleielad" Cc: Topicbox-Message-UUID: 4c070aa6-ead0-11e9-9d60-3106f5b1d025 This is a multi-part message in MIME format. --upas-opmaegmhhprjnlwnxcjleielad Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit My favorite error message of all time was `unintelligent control statment was output with diagnostic.' That was on the batch job control on an CDC 18/20 ITOS system. It was years later that I realized that my program had stopped without reading the last record in the sysin and a data card was the next thing read by the batch system. I had put two sentinel numbers as input instead of one. It just couldn't figure out what to do with 99999 as a job control card. The message should have been, `Hey stupid! What's 99999 supposed to mean?' Brantley --upas-opmaegmhhprjnlwnxcjleielad Content-Type: message/rfc822 Content-Disposition: inline Received: from mail.cse.psu.edu ([130.203.4.6]) by coraid.com; Sat May 14 14:22:11 EDT 2005 Received: from psuvax1.cse.psu.edu (localhost [127.0.0.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id B98D9182A2 for ; Sat, 14 May 2005 14:21:58 -0400 (EDT) X-Original-To: 9fans@cse.psu.edu Delivered-To: 9fans@cse.psu.edu Received: from localhost (localhost [127.0.0.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id B66F418184 for <9fans@cse.psu.edu>; Sat, 14 May 2005 14:21:41 -0400 (EDT) Received: from mail.cse.psu.edu ([127.0.0.1]) by localhost (psuvax1 [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 07964-02-30 for <9fans@cse.psu.edu>; Sat, 14 May 2005 14:21:29 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.205]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 8DB0118182 for <9fans@cse.psu.edu>; Sat, 14 May 2005 14:21:29 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id 18so2266322nzp for <9fans@cse.psu.edu>; Sat, 14 May 2005 11:21:29 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jNMHazeGLcZq4d8WbACRxNN48bjeA7D1txjdFkNYryvcsrs34pKDk5uZep0BTMOk+sG2u94meTpL0f7vP1iVUpXL4wXu6sxMGQ6CPICRMWeqQrv1VqkR+YEBKqqb4kzPdTtA5+G28YFOeHworv/QOJSc5/RUuNy3PCh+hcnKsJ8= Received: by 10.36.101.11 with SMTP id y11mr1331999nzb; Sat, 14 May 2005 11:21:29 -0700 (PDT) Received: by 10.36.38.4 with HTTP; Sat, 14 May 2005 11:21:29 -0700 (PDT) Message-ID: <775b8d1905051411214f40e25c@mail.gmail.com> Date: Sun, 15 May 2005 04:21:29 +1000 From: Bruce Ellis To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] once is enough: VOID In-Reply-To: <81285fb031037e55f9d64ab467482328@coraid.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <81285fb031037e55f9d64ab467482328@coraid.com> X-Virus-Scanned: by amavisd-new at cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Bruce Ellis , Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: 9fans-bounces+brantley=coraid.com@cse.psu.edu Errors-To: 9fans-bounces+brantley=coraid.com@cse.psu.edu One day I'll fix cc so it's diagnostics are more like those of cyntax. A diagnostic should indicate the culprit, not where the parser was when the semantic analysis was done. Then again one day dumb-ass airline will show up with my luggage. Consider yourself lucky. I spent half a day trying to work out what a gcc diagnostic meant and eventually cracked open a six pack and wrote the entire file again from scratch - discarding the first attempt. Never did find out what the message meant. brucee On 5/14/05, Brantley Coile wrote: > I just spent 20 minutes figuring out what the above warning meant. > The line number given in the warning is incorrect, so it took the 20 > minutes before I noticed that I had used the keyword `void' twice for > a function type a few lines below the last line of the previous > function, which was the line in the warning message. >=20 > Hope this saves someone else their 20 minutes. >=20 > Brantley --upas-opmaegmhhprjnlwnxcjleielad--