From: Jeff Garzik <jeff@garzik.org>
To: Morten Welinder <terra@gnome.org>
Cc: linux-sparse@vger.kernel.org
Subject: Re: [PATCH] sparse: gcc 4.1 warnings
Date: Mon, 10 Apr 2006 20:30:28 -0400 [thread overview]
Message-ID: <443AF8A4.2090007@garzik.org> (raw)
In-Reply-To: <20060410132157.4AF15C000E2@dunnock.rentec.com>
Morten Welinder wrote:
> This doesn't look quite right.
>
> So it looks like gcc 4.1 complains over non-used values that are the
> result of a cast. That feels obnoxious, but in this case maybe you
Yes, it is :) See below for vanilla sparse build under gcc 4.1...
> could try just casting to void in add_ptr_list -- is the value ever
> used?
All uses except for add_pseudo() ignore the return value.
Jeff
gcc -O -g -Wall -Wwrite-strings -fpic -DDEBUG -c -o lib.o lib.c
In file included from lib.c:21:
lib.h: In function ‘add_symbol’:
lib.h:171: warning: value computed is not used
lib.h: In function ‘add_statement’:
lib.h:176: warning: value computed is not used
lib.h: In function ‘add_expression’:
lib.h:181: warning: value computed is not used
In file included from lib.c:28:
linearize.h: In function ‘add_bb’:
linearize.h:227: warning: value computed is not used
linearize.h: In function ‘add_instruction’:
linearize.h:232: warning: value computed is not used
linearize.h: In function ‘add_multijmp’:
linearize.h:237: warning: value computed is not used
linearize.h: In function ‘add_pseudo_ptr’:
linearize.h:266: warning: value computed is not used
gcc -O -g -Wall -Wwrite-strings -fpic -DDEBUG -c -o scope.o scope.c
In file included from scope.c:15:
lib.h: In function ‘add_symbol’:
lib.h:171: warning: value computed is not used
lib.h: In function ‘add_statement’:
lib.h:176: warning: value computed is not used
lib.h: In function ‘add_expression’:
lib.h:181: warning: value computed is not used
gcc -O -g -Wall -Wwrite-strings -fpic -DDEBUG -c -o expression.o
expression.c
In file included from expression.c:21:
lib.h: In function ‘add_symbol’:
lib.h:171: warning: value computed is not used
lib.h: In function ‘add_statement’:
lib.h:176: warning: value computed is not used
lib.h: In function ‘add_expression’:
lib.h:181: warning: value computed is not used
[...]
next prev parent reply other threads:[~2006-04-11 0:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-08 4:14 [PATCH] sparse: gcc 4.1 warnings Jeff Garzik
2006-04-10 13:21 ` Morten Welinder
2006-04-11 0:30 ` Jeff Garzik [this message]
2006-04-11 8:56 ` Jörn Engel
2006-04-11 9:10 ` Chris Wedgwood
2006-04-11 9:19 ` Jörn Engel
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=443AF8A4.2090007@garzik.org \
--to=jeff@garzik.org \
--cc=linux-sparse@vger.kernel.org \
--cc=terra@gnome.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.