From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id 0534E42E98 for ; Fri, 8 Nov 2002 16:51:02 -0500 (EST) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id gA8Lp1f02033 for axp-list@listman.redhat.com; Fri, 8 Nov 2002 16:51:01 -0500 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id gA8Lp1f02020 for ; Fri, 8 Nov 2002 16:51:01 -0500 Received: from Marvin.DL8BCU.ampr.org (root@p50829A93.dip.t-dialin.net [80.130.154.147]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id gA8LSBw03324 for ; Fri, 8 Nov 2002 16:28:12 -0500 Received: from dl8bcu.de (th@localhost [127.0.0.1]) by Marvin.DL8BCU.ampr.org (8.12.1/8.12.1) with ESMTP id gA8LovVK018485 for ; Fri, 8 Nov 2002 21:50:58 GMT Received: (from th@localhost) by dl8bcu.de (8.12.1/8.12.1/Submit) id gA8LouJY018484 for axp-list@redhat.com; Fri, 8 Nov 2002 21:50:56 GMT X-Authentication-Warning: Marvin.borg.net: th set sender to dl8bcu@dl8bcu.de using -f Date: Fri, 8 Nov 2002 21:50:56 +0000 From: Thorsten Kranzkowski To: axp-list@redhat.com Subject: Re: [PATCH] eliminate compile warnings Message-ID: <20021108215056.C18411@Marvin.DL8BCU.ampr.org> Mail-Followup-To: axp-list@redhat.com References: <20021106214705.A15525@Marvin.DL8BCU.ampr.org> <02110709222600.14483@shadowfax.middleearth> <20021107202855.B17028@Marvin.DL8BCU.ampr.org> <20021107173349.A4017@twiddle.net> <20021108073845.A17905@Marvin.DL8BCU.ampr.org> <20021108102823.A4439@ellpspace.math.ualberta.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20021108102823.A4439@ellpspace.math.ualberta.ca>; from michal@ellpspace.math.ualberta.ca on Fri, Nov 08, 2002 at 10:28:23AM -0700 X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com X-Reply-To: dl8bcu@dl8bcu.de List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: On Fri, Nov 08, 2002 at 10:28:23AM -0700, Michal Jaegermann wrote: > On Fri, Nov 08, 2002 at 07:38:45AM +0000, Thorsten Kranzkowski wrote: > > > > I will give my patch another thought and I will feed it to you in smaller > > pieces and with comments. > > You will have much better chances for correctness and acceptance if > you will try to _reduce_ number of casts by making sure that types of > objects agree, if only possible, instead of sprinkling code with extra I've actually done that. > casts. Every such thing is a potential spot for a masked bug although > side effects of a missed signed/unsigned comparison can also be nasty. > But if you want a unsigned constant with all bits on then ~0UL is surely > preferable over casting (-1) to unsigned long; even if just for clarity. ok, what do you suggest when there's a return ( x ? 0 : -ENOMEM ) in a function declared as unsigned long ? > BTW - contrary to claim by Richard I found something like 45 lines > changed in that patch insted of "hundreds". :-) No, I am not trying compared to the 2039 warning lines in my make.log (from a total of 5312) I thought squashing the first 55 (the alpha ones) was a small patch. obviously not small enough :) > to convince anybody that this number is small enough. > > Michal Thorsten, currently reviewing the thing. -- | Thorsten Kranzkowski Internet: dl8bcu@dl8bcu.de | | Mobile: ++49 170 1876134 Snail: Niemannsweg 30, 49201 Dissen, Germany | | Ampr: dl8bcu@db0lj.#rpl.deu.eu, dl8bcu@marvin.dl8bcu.ampr.org [44.130.8.19] |