From: Thorsten Kranzkowski <dl8bcu@dl8bcu.de>
To: axp-list@redhat.com
Subject: Re: [PATCH] eliminate compile warnings
Date: Fri, 8 Nov 2002 21:50:56 +0000 [thread overview]
Message-ID: <20021108215056.C18411@Marvin.DL8BCU.ampr.org> (raw)
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
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] |
next prev parent reply other threads:[~2002-11-08 21:51 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-06 21:47 [PATCH] eliminate compile warnings Thorsten Kranzkowski
2002-11-07 14:22 ` George France
2002-11-07 17:17 ` Ted Goodridge
2002-11-07 19:59 ` George France
2002-11-07 20:28 ` Thorsten Kranzkowski
2002-11-07 20:55 ` George France
2002-11-08 1:33 ` Richard Henderson
2002-11-08 2:54 ` George France
2002-11-08 3:25 ` Richard Henderson
2002-11-08 4:04 ` George France
2002-11-08 7:38 ` Thorsten Kranzkowski
2002-11-08 17:28 ` Michal Jaegermann
2002-11-08 21:50 ` Thorsten Kranzkowski [this message]
2002-11-09 0:42 ` Michal Jaegermann
2002-11-09 1:32 ` Thorsten Kranzkowski
[not found] ` <3DCA9A88.4060109@pobox.com>
2002-11-07 21:43 ` Thorsten Kranzkowski
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox