delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2014/04/20/10:14:08

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
X-Recipient: djgpp-workers AT delorie DOT com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:content-type;
bh=VPLi1UdouW49B5YCQJNMMxDRL3R+THn2SuhRi2od9gg=;
b=oLzM9wvBrmHkvl40QvSwzOC7feD6QPM2q6Xnoj461sq9los0E8g7rWlamWvXhjsVWG
18JNLgJTzing6jRwdN+4m2BMnHq1hcwZOPc8r4n8iSamYW4JGadQOgFFuEsl31OhDfIg
M4Ml4KxMupojaQdawH8G1OC6mLuYM87H/A41Jzjzj6n/MjVjzAaAaK7S1pkJaPUMgjCT
2XJFVQfv4n4MpORThNOUKLY1CQvriH4uFq4bIuRnuTnwitwt0KoAMEHf5eiWtNlft91u
wGf8jQJxI913gRFuV1pzrNDkxbYCNuPr98WV9Quo7DDha2z6lf7/iD/7N6gKFOqtiGo/
u+KA==
MIME-Version: 1.0
X-Received: by 10.50.22.210 with SMTP id g18mr16448552igf.19.1398003239262;
Sun, 20 Apr 2014 07:13:59 -0700 (PDT)
In-Reply-To: <5353C7A1.5070500@gmx.de>
References: <CAA2C=vBEXS=7Dp2yPwtv1noVt8FC3QGyczRyw8-uipyNscp9jg AT mail DOT gmail DOT com>
<5352F0CD DOT 7000001 AT gmx DOT de>
<CAA2C=vCaEcLBRn=-dYQZb4P5dSmQuBpUZpmh-Bd922BCFFiJnQ AT mail DOT gmail DOT com>
<5353C7A1 DOT 5070500 AT gmx DOT de>
Date: Sun, 20 Apr 2014 17:13:59 +0300
Message-ID: <CAA2C=vAADAFU57uk2jZWFmpnNLYQ=KS5vBtzTrvDh-d5uxYd7A@mail.gmail.com>
Subject: Re: [PATCH] fix library build for -Werror
From: Ozkan Sezer <sezeroz AT gmail DOT com>
To: djgpp-workers AT delorie DOT com
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 4/20/14, Juan Manuel Guerrero <juan DOT guerrero AT gmx DOT de> wrote:
> Am 20.04.2014 07:37, schrieb Ozkan Sezer:
>> On 4/20/14, Juan Manuel Guerrero <juan DOT guerrero AT gmx DOT de> wrote:
>> [snip]
>>>       * djgpp/src/libc/ansi/time/ctime.c:  Fix warning: comparison is
>>> always
>>> false due to limited range of data type.
>> zoneinfo/src/localtime.c needs the same adjustment (failed
>> mentioning this before, because it didn't stop the build.)
>>
>> Index: zoneinfo/src/localtime.c
>> ===================================================================
>> RCS file: /cvs/djgpp/djgpp/zoneinfo/src/localtime.c,v
>> retrieving revision 1.5
>> diff -u -p -r1.5 localtime.c
>> --- zoneinfo/src/localtime.c	17 Aug 2013 21:04:13 -0000	1.5
>> +++ zoneinfo/src/localtime.c	20 Apr 2014 05:33:28 -0000
>> @@ -344,7 +344,7 @@ differ_by_repeat(const time_t t1, const
>>   	if (TYPE_INTEGRAL(time_t) &&
>>   		TYPE_BIT(time_t) - TYPE_SIGNED(time_t) < SECSPERREPEAT_BITS)
>>   			return 0;
>> -	return t1 - t0 == SECSPERREPEAT;
>> +	return (int_fast64_t)t1 - (int_fast64_t)t0 == SECSPERREPEAT;
>>   }
>>
>>   static int
>>
>> --
>> O.S.
>
> Committed patch below.

Thanks.

> Did the perl fix work for you?
>

Yes it did, thanks.

--
O.S.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019