Commit 8822485c authored by Antonio J. Pena's avatar Antonio J. Pena
Browse files

Fix warning in mpltrmem.c



Fixes the following warning (with --enable-strict):

src/mpltrmem.c: In function 'MPL_trdump':
src/mpltrmem.c:584:14: warning: variable 'old_head' set but not used
[-Wunused-but-set-variable]

See ticket #1966

Modifications by: Wesley Bland <wbland@mcs.anl.gov>
Signed-off-by: default avatarWesley Bland <wbland@mcs.anl.gov>
parent 65a3af43
......@@ -581,7 +581,9 @@ Input Parameters:
void MPL_trdump(FILE * fp, int minid)
{
TRSPACE *head;
#ifdef VALGRIND_MAKE_MEM_NOACCESS
TRSPACE *old_head;
#endif
char hexstring[MAX_ADDRESS_CHARS];
if (fp == 0)
......@@ -607,7 +609,9 @@ void MPL_trdump(FILE * fp, int minid)
fprintf(fp, "%s[%d]\n", head->fname, head->lineno);
}
}
#ifdef VALGRIND_MAKE_MEM_NOACCESS
old_head = head;
#endif
head = head->next;
MPL_VG_MAKE_MEM_NOACCESS(old_head, sizeof(*old_head));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment