Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!cuae2!ltuxa!ttrdc!levy From: levy@ttrdc.UUCP Newsgroups: comp.lang.c Subject: Re: Another portable code question Message-ID: <1763@ttrdc.UUCP> Date: Mon, 15-Jun-87 01:57:46 EDT Article-I.D.: ttrdc.1763 Posted: Mon Jun 15 01:57:46 1987 Date-Received: Tue, 16-Jun-87 01:38:57 EDT References: <16673@cca.CCA.COM> Organization: AT&T, Skokie, IL Lines: 25 In article <16673@cca.CCA.COM>, g-rh@cca.CCA.COM (Richard Harter) writes: < extern int (*command_table[])(); < ..... < command_processor() { < .... < int (*command)(); < .... < command = command_table[n]; < .... < (*command)(args); < .... < } < < One vendor's compiler (I won't name it because I don't have the < log sheets at hand) gives a compilation warning for (*command)(). < (This is a UNIX box.) I'm curious what the warning is. Could the compiler be griping because you do nothing with the return value from (*command)(args) ? (Lint should complain about this too.) -- |------------dan levy------------| Path: ..!{akgua,homxb,ihnp4,ltuxa,mvuxa, | an engihacker @ | vax135}!ttrdc!ttrda!levy | at&t data systems division | Disclaimer: try datclaimer. |--------skokie, illinois--------|