mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
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:
parent
cf5ed25c9e
commit
6c9f46bafb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user