From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24802 invoked from network); 14 Jul 1997 10:06:15 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 14 Jul 1997 10:06:15 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id FAA17149; Mon, 14 Jul 1997 05:50:56 -0400 (EDT) Resent-Date: Mon, 14 Jul 1997 05:50:56 -0400 (EDT) Message-Id: <199707140955.LAA12259@sgi.ifh.de> To: zsh-workers@math.gatech.edu (Zsh hackers list) Subject: Re: zsh 3.0.4 with IRIX 6.2/IDO In-reply-to: "Andrew Main"'s message of "Mon, 14 Jul 1997 09:20:16 MET." <199707140820.JAA09501@taos.demon.co.uk> Date: Mon, 14 Jul 1997 11:55:09 +0200 From: Peter Stephenson Resent-Message-ID: <"oTLHa3.0.rB4._PVop"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/3364 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Andrew Main wrote: > Jason R Mastaler wrote: > > >BTW, compilation did yield one non-fatal warning I thought I'd bring > >to your attention. Otherwise, no problems. > > > > cc -c -I.. -I. -I. -DHAVE_CONFIG_H -O2 zle_tricky.c > >cfe: Warning 709: zle_tricky.c, line 1553: Incompatible pointer type assignm > ent > > cb.foreach = (int ((*) (void) )) match_username; > > -----------^ > > Question to developers: why was the (void) added? It seems to have been > fine with just (). It's strange, because the (void) actually makes it wrong, implying it takes no argument which is incorrect. I would certainly suggest either () or if there are compilers that like function pointers to have arguments in their prototypes then the full (int, char *, int, char *, int, char*) which, even if it is sometimes the odd pointer out (though I would have thought the NIS standard was fixed?), is nearer the mark than (void). -- Peter Stephenson Tel: +49 33762 77366 WWW: http://www.ifh.de/~pws/ Fax: +49 33762 77413 Deutsches Elektronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen DESY-IfH, 15735 Zeuthen, Germany.