On Sun, Dec 30, 2001 at 07:04:40PM -0500, Michael G Schwern wrote:
> Those lovely warnings the OSF compiler generates are in the attached log.

cc: Warning: sv.c, line 5703: In this statement, the referenced type of the pointer 
value "((char ...)ptr)" is "char", which is not compatible with "unsigned char" 
because they differ by signed/unsigned attribute. (ptrmismatch1)
        PerlIO_set_ptrcnt(fp, (STDCHAR*)ptr, cnt); /* deregisterize cnt and ptr */
--------^
cc: Warning: sv.c, line 5748: In this statement, the referenced type of the pointer 
value "((char ...)ptr)" is "char", which is not compatible with "unsigned char" 
because they differ by signed/unsigned attribute. (ptrmismatch1)
    PerlIO_set_ptrcnt(fp, (STDCHAR*)ptr, cnt);  /* put these back or we're in trouble 
*/
----^
cc: Warning: str.c, line 302: In this statement, the referenced type of the pointer 
value "((fp)->_ptr)" is "unsigned char", which is not compatible with "char" because 
they differ by signed/unsigned attribute. (ptrmismatch1)
        ptr = FILE_ptr(fp);             /* reregisterize cnt and ptr */
--------^
cc: Warning: str.c, line 319: In this statement, the referenced type of the pointer 
value "(char ...)ptr" is "char", which is not compatible with "unsigned char" because 
they differ by signed/unsigned attribute. (ptrmismatch1)
    FILE_ptr(fp) = (STDCHAR*)ptr;
----^

I have vague memory of staring at these and IIRC no canna fixa without
introducing LHS casts, which again makes HP-UX grumpy.

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Reply via email to