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: <5352F0CD DOT 7000001 AT gmx DOT de> <5353C7A1 DOT 5070500 AT gmx DOT de> Date: Sun, 20 Apr 2014 17:13:59 +0300 Message-ID: Subject: Re: [PATCH] fix library build for -Werror From: Ozkan Sezer To: djgpp-workers AT delorie DOT com Content-Type: text/plain; charset=UTF-8 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 Precedence: bulk On 4/20/14, Juan Manuel Guerrero wrote: > Am 20.04.2014 07:37, schrieb Ozkan Sezer: >> On 4/20/14, Juan Manuel Guerrero 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.