Suppressing lint messages on arena_s and exit
Tim Monks
tim at bhpmrl.oz.au
Thu Jul 26 12:44:00 AEST 1990
Has anyone got some ideas on how to suppress lint messages concerning arena_s
and exit ? If I run lint as follows
morgana > lint -bu -lc -lmalloc foo.c
one the following program :
#include <stdio.h>
#include <malloc.h>
int *NR_ivector(nl,nh)
int nl,nh;
{
int *v;
v=(int *)malloc((unsigned) (nh-nl+1)*sizeof(int));
if (!v) exit(1);
return v-nl;
}
I get the following messages :
foo.c
==============
Warning: (13) struct/union arena_s never defined
warning: possible pointer alignment problem
(9)
==============
value type declared inconsistently
exit llib-lc.brl(50) :: foo.c(10)
I'm not too grouchy over the warning about the pointer, that's fair, but how do I
stop the messages about arena_s and exit ?
Thanks,
Tim
--
Dr. Tim Monks
Image Processing & Data Analysis Group | (direct) (+61-3)566-7448
BHP Melbourne Research Laboratories | (switch) (+61-3)560-7066
245 Wellington Rd, Mulgrave, 3170, | (fax) (+61-3)561-6709
AUSTRALIA | (EMAIL) tim at merlin.bhpmrl.oz.au
More information about the Comp.sys.sgi
mailing list