|
From: <sv...@va...> - 2014-08-22 20:34:13
|
Author: florian
Date: Fri Aug 22 20:34:03 2014
New Revision: 14338
Log:
Make print_fd a local variable. The assignment in print_bbcs was a
dead assignment because the variable is being unconditionally assigned
in print_bbccs_of_thread which is the only other function to use that
variable.
Modified:
branches/BUF_REMOVAL/callgrind/dump.c
Modified: branches/BUF_REMOVAL/callgrind/dump.c
==============================================================================
--- branches/BUF_REMOVAL/callgrind/dump.c (original)
+++ branches/BUF_REMOVAL/callgrind/dump.c Fri Aug 22 20:34:03 2014
@@ -1475,7 +1475,6 @@
/* Helper for print_bbccs */
-static Int print_fd;
static const HChar* print_trigger;
static HChar print_buf[BUF_LEN];
@@ -1487,7 +1486,7 @@
CLG_DEBUG(1, "+ print_bbccs(tid %d)\n", CLG_(current_tid));
- print_fd = new_dumpfile(print_buf, CLG_(current_tid), print_trigger);
+ Int print_fd = new_dumpfile(print_buf, CLG_(current_tid), print_trigger);
if (print_fd <0) {
CLG_DEBUG(1, "- print_bbccs(tid %d): No output...\n", CLG_(current_tid));
return;
@@ -1568,7 +1567,6 @@
init_dump_array();
init_debug_cache();
- print_fd = -1;
print_trigger = trigger;
if (!CLG_(clo).separate_threads) {
|