[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More problems on HP-UX ... 6

From: Kevin Ryde
Subject: Re: More problems on HP-UX ... 6
Date: Wed, 28 Apr 2004 09:04:13 +1000
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux)

Andreas Vögele <address@hidden> writes:
> I think that the following warnings are caused by a bug in GCC
> 3.3.2.

No it arises from ctype.h supplied by your good friends at hp.

> According to my copy of "Programming in C" it should be okay to
> pass a char instead of an int to iscntrl() etc.

I think it was meant to be an int.  But if you're in 7-bit ascii then
it doesn't make a difference.

> backtrace.c: In function `display_frame_expr':
> backtrace.c:403: warning: subscript has type `char'
> numbers.c: In function `mem2uinteger':
> numbers.c:2337: warning: subscript has type `char'
> ...

Thanks, I'll add some casts to "int".  They definitely want casts
through "unsigned char", to protect against 8-bit values.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]