Ian Collins <[EMAIL PROTECTED]> wrote:
> I'm not sure what lint level is used in the builds, but given
>
> int main(void)
> {
> char* xx = "fhfhfhf";
> xx[0] ='d';
> return 0;
> }
>
> lint -Nlevel=2 x.c
>
> modification of constant data
> <unknown name> :: x.c(4)
>
> Lint spots the error.
If you pass the string as argument, it may be that the
warning disappears.
Jörg
--
EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
[EMAIL PROTECTED] (uni)
[EMAIL PROTECTED] (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code