public inbox for linux-parisc@vger.kernel.org
 help / color / mirror / Atom feed
From: Chen Gang <gang.chen@asianux.com>
To: Helge Deller <deller@gmx.de>,
	"James E.J. Bottomley" <jejb@parisc-linux.org>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>,
	Parisc List <linux-parisc@vger.kernel.org>
Subject: [Suggestion] parisc: about the warnings "unsigned expression < 0 is always false"
Date: Mon, 29 Jul 2013 16:39:29 +0800	[thread overview]
Message-ID: <51F62A41.6090909@asianux.com> (raw)
In-Reply-To: <51F5C158.3030303@asianux.com>

Hello Maintainers:

Are the warnings real issue (I guess so, but don't know how to fix) ?

Please help check, thanks.

The cross compiler is built from (gcc-4.9.0 and binutils-2.23.2 with
'hppa-gchen-linux'), the related warnings (for 'allmodconfig'):

In file included from arch/parisc/math-emu/fmpyfadd.c:50:0:
arch/parisc/math-emu/fmpyfadd.c: In function 'dbl_fmpyfadd':
arch/parisc/math-emu/dbl_float.h:755:30: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
  if ((unsigned int)(src1dstD += (src2D)) < (unsigned int)(src2D)) { \
                              ^
arch/parisc/math-emu/fmpyfadd.c:394:4: note: in expansion of macro 'Fourword_add'
    Fourword_add(tmpresp1, tmpresp2, tmpresp3, tmpresp4,
    ^
arch/parisc/math-emu/dbl_float.h:765:33: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
     if ((unsigned int)(src1dstC += (src2C)) <   \
   
                              ^
:-)

Thanks.
--
Chen Gang

      reply	other threads:[~2013-07-29  8:39 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-24  8:12 [PATCH] parisc: Kconfig: use 'PA8X00' as the default choise instead of 'PA7000' Chen Gang
2013-07-24  8:27 ` [Suggestion] parisc: kernel: about section mismatch warning Chen Gang
2013-07-24 14:11   ` James Bottomley
2013-07-24 23:58     ` Chen Gang F T
2013-07-29  8:49       ` Chen Gang
2013-07-29 13:47         ` John David Anglin
2013-07-29 18:23           ` Helge Deller
2013-07-30  0:48           ` Chen Gang
2013-07-24 14:00 ` [PATCH] parisc: Kconfig: use 'PA8X00' as the default choise instead of 'PA7000' James Bottomley
2013-07-25  0:37   ` Chen Gang F T
2013-07-26 20:08     ` Helge Deller
2013-07-29  1:11       ` Chen Gang
2013-07-29  8:39         ` Chen Gang [this message]

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=51F62A41.6090909@asianux.com \
    --to=gang.chen@asianux.com \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=deller@gmx.de \
    --cc=jejb@parisc-linux.org \
    --cc=linux-parisc@vger.kernel.org \
    /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