Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: Notesfiles; site ea.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!ihnp4!inuxc!pur-ee!uiucdcs!ea!mwm From: mwm@ea.UUCP Newsgroups: net.unix Subject: Lint Confusion? - (nf) Message-ID: <13400009@ea.UUCP> Date: Mon, 23-Jul-84 21:57:00 EDT Article-I.D.: ea.13400009 Posted: Mon Jul 23 21:57:00 1984 Date-Received: Fri, 27-Jul-84 09:06:16 EDT Lines: 20 Nf-ID: #N:ea:13400009:000:596 Nf-From: ea!mwm Jul 23 20:57:00 1984 #N:ea:13400009:000:596 ea!mwm Jul 23 20:57:00 1984 While delinting a PD program I had gotten a copy of, I ran into a problem that indicates that either lint or I are confused. The decleration is: struct node *(*map)[]; and (of course): char *calloc(); The line lint complains about is: if ((map = (struct node *(*)[]) calloc(1,sizeof(struct node *) * KMSIZE)) Lint says: xlkmap.c(48): warning: illegal pointer combination xlkmap.c(49): warning: possible pointer alignment problem Is lint objecting to coercing a pointer to glop {*(*)[]}, or is it confused, or am I confused? Second, is there any reasonable way to get rid of this?