develooper Front page | perl.perl5.porters | Postings from February 2003

How about gcc -funsigned-char [Was: Re: one signedness nit for Encode]

Thread Previous | Thread Next
From:
Dan Kogai
Date:
February 16, 2003 14:32
Subject:
How about gcc -funsigned-char [Was: Re: one signedness nit for Encode]
Message ID:
8C49FD6C-41FE-11D7-BCE7-000393AE4244@dan.co.jp
On Monday, Feb 17, 2003, at 05:41 Asia/Tokyo, Jarkko Hietaniemi wrote:
> On Mon, Feb 17, 2003 at 05:27:06AM +0900, Dan Kogai wrote:
>> On Monday, Feb 17, 2003, at 04:33 Asia/Tokyo, Jarkko Hietaniemi wrote:
>>> -    U8 *trm = term ? SvPV(term, trmlen) : NULL;
>>> +    U8 *trm = term ? (U8*) SvPV(term, trmlen) : NULL;
>>
>> Kiitos.  Typecast and applied.
>
> It's a pity gcc doesn't warn about such problems without -pedantic.
> AIX and Tru64 compilers warn; VMS compilers find it a fatal error.

GCC does have -funsigned-char, however. Does perl source use signed 
char anywhere?  If not, we may consider using it in hints file.  So far 
as I see,

> % grep unsigned-char ~/work/perl-current/hints/*
> %

it's not used.

(Unsigned U8*)Dan = "the Encode Maintainer";


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About