From mboxrd@z Thu Jan 1 00:00:00 1970 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> Topicbox-Message-UUID: 4bf2c258-ead0-11e9-9d60-3106f5b1d025 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