9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Charles Forsyth <forsyth@terzarima.net>
To: 9fans@9fans.net
Subject: Re: [9fans] missing diagnostic?
Date: Thu, 20 Nov 2008 23:02:32 +0000	[thread overview]
Message-ID: <c9aad629301249411d3d373c83d8ebd9@terzarima.net> (raw)
In-Reply-To: <d7d3103ea912c0ef5a4afbd07ef27904@quanstro.net>

[-- Attachment #1: Type: text/plain, Size: 247 bytes --]

doppio% 8c -w cm.c
warning: cm.c:14 useless or misleading comparison: UVLONG < 0
doppio% qc -w cm.c
warning: cm.c:14 useless or misleading comparison: UVLONG < 0
doppio% 5c -w cm.c
warning: cm.c:14 useless or misleading comparison: UVLONG < 0

[-- Attachment #2: Type: message/rfc822, Size: 1738 bytes --]

From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: [9fans] missing diagnostic?
Date: Thu, 20 Nov 2008 17:08:13 -0500
Message-ID: <d7d3103ea912c0ef5a4afbd07ef27904@quanstro.net>

i was expecting kenc to complain about the
a < 0 test, which can never be true.

int
fetchicmp(Fetchi *f1, Fetchi *f2)
{
	uvlong a, b;

	a = f1->uid;
	b = f2->uid;

	a -= b;
	if(a > 0)
		return 1;
	if(a < 0)
		return -1;
	return 0;
}

- erik

  reply	other threads:[~2008-11-20 23:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-20 22:08 erik quanstrom
2008-11-20 23:02 ` Charles Forsyth [this message]
2008-11-20 22:54   ` erik quanstrom

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=c9aad629301249411d3d373c83d8ebd9@terzarima.net \
    --to=forsyth@terzarima.net \
    --cc=9fans@9fans.net \
    /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;
as well as URLs for NNTP newsgroup(s).