Replay: fix shadowed declaration

../../Tools/Replay/Replay.cpp: In member function ‘FILE* Replay::xfopen(const char*, const char*)’:
../../Tools/Replay/Replay.cpp:485:60: warning: declaration of ‘filename’ shadows a member of ‘Replay’ [-Wshadow]
 FILE *Replay::xfopen(const char *filename, const char *mode)
                                  ^
This commit is contained in:
Lucas De Marchi 2016-11-16 22:28:11 -02:00
parent cf5ed25c9e
commit 6c9f46bafb

View File

@ -482,11 +482,11 @@ static void _replay_sig_fpe(int signum)
abort();
}
FILE *Replay::xfopen(const char *filename, const char *mode)
FILE *Replay::xfopen(const char *f, const char *mode)
{
FILE *ret = fopen(filename, mode);
FILE *ret = fopen(f, mode);
if (ret == nullptr) {
::fprintf(stderr, "Failed to open (%s): %m\n", filename);
::fprintf(stderr, "Failed to open (%s): %m\n", f);
abort();
}
return ret;