public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Paul Jackson <pj@sgi.com>
To: Jesper Juhl <juhl@dif.dk>
Cc: joe@perches.com, juhl-lkml@dif.dk, linux-kernel@vger.kernel.org,
	markhe@nextd.demon.co.uk, andrea@e-mind.com,
	manfred@colorfullife.com
Subject: Re: [PATCH] mm/slab.c remove impossible <0 check - size_t is not signed - patch is against 2.6.1-rc1-mm2
Date: Thu, 8 Jan 2004 02:16:58 -0800	[thread overview]
Message-ID: <20040108021658.0a8aaccc.pj@sgi.com> (raw)
In-Reply-To: <Pine.LNX.4.56.0401081032590.10083@jju_lnx.backbone.dif.dk>

Jason asked:
> Well, anything wrong in cleaning them [unsigned compare warnings] up?

It's more important that we write code that will fit in our limited
human brains than that we write code that will avoid spurious warnings
from gcc ('spurious' meaning warnings for code that gcc will correctly
compile anyway).

Or, see a couple months ago, in a thread with the Subject of:

  [PATCH] irda: fix type of struct irda_ias_set.attribute.irda_attrib_string.len

in which Linus wrote:
> That's why I hate the "sign compare" warning of gcc so much - it warns 
> about things that you CANNOT sanely write in any other way. That makes 
> that particular warning _evil_, since it encourages people to write crap 
> code.


-- 
                          I won't rest till it's the best ...
                          Programmer, Linux Scalability
                          Paul Jackson <pj@sgi.com> 1.650.933.1373

  reply	other threads:[~2004-01-08 10:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-08  1:20 [PATCH] mm/slab.c remove impossible <0 check - size_t is not signed - patch is against 2.6.1-rc1-mm2 Jesper Juhl
2004-01-08  3:08 ` Joe Perches
2004-01-08  9:33   ` Jesper Juhl
2004-01-08 10:16     ` Paul Jackson [this message]
2004-01-08 15:28       ` Jens Axboe
2004-01-08 19:33         ` Manfred Spraul
2004-01-08 15:37       ` Joe Perches
2004-01-15  1:13         ` Bill Davidsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040108021658.0a8aaccc.pj@sgi.com \
    --to=pj@sgi.com \
    --cc=andrea@e-mind.com \
    --cc=joe@perches.com \
    --cc=juhl-lkml@dif.dk \
    --cc=juhl@dif.dk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=manfred@colorfullife.com \
    --cc=markhe@nextd.demon.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox