lint on malloc calls
Tom Stockfisch
tps at chem.ucsd.edu
Sun Sep 11 05:09:45 AEST 1988
In article <660017 at hpclscu.HP.COM> shankar at hpclscu.HP.COM (Shankar Unni) writes:
>>
>> phone.c(61): warning: illegal pointer combination
>> phone.c(61): warning: possible pointer alignment problem
>A possible workaround to pacify your lint:
>Declare malloc as
> double *malloc();
This is most preverse. The point of trying to pacify lint is to make your
code portable. You are proposing turning portable code into
non-portable code to pacify lint.
--
|| Tom Stockfisch, UCSD Chemistry tps at chem.ucsd.edu
More information about the Comp.lang.c
mailing list