aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/graph.c
diff options
authorChristopher Li <sparse@chrisli.org>2011-05-31 04:16:32 -0700
committerChristopher Li <sparse@chrisli.org>2011-05-31 04:19:46 -0700
commit271cb1a33b9d1354ddca75d5c670e98dc4943092 (patch)
tree87da91c825b44e84254a7267b5c4b69f166a8dad /graph.c
parentd8b20ec2324b09b164b298fbab6b4265b6886929 (diff)
downloadsparse-dev-271cb1a33b9d1354ddca75d5c670e98dc4943092.tar.gz
Remove set but not used variable
The new gcc complain about set but not used variable. This should make the new gcc happy. Signed-off-by: Christopher Li <sparse@chrisli.org>
Diffstat (limited to 'graph.c')
-rw-r--r--graph.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/graph.c b/graph.c
index 1a77d750..3633783c 100644
--- a/graph.c
+++ b/graph.c
@@ -104,10 +104,8 @@ static void graph_calls(struct entrypoint *ep, int internal)
struct basic_block *bb;
struct instruction *insn;
- const char *fname, *sname;
-
- fname = show_ident(ep->name->ident);
- sname = stream_name(ep->entry->bb->pos.stream);
+ show_ident(ep->name->ident);
+ stream_name(ep->entry->bb->pos.stream);
FOR_EACH_PTR(ep->bbs, bb) {
if (!bb)