mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 03:43:35 +08:00
vfile: rename fops to fix shadowing warning
for GCC 8.0.1
This commit is contained in:
@@ -51,8 +51,8 @@ VFile::VFile(const char *fname, mode_t mode) :
|
||||
VFile *VFile::createFile(const char *fname, mode_t mode)
|
||||
{
|
||||
VFile *me = new VFile(fname, mode);
|
||||
px4_file_operations_t *fops = nullptr;
|
||||
register_driver(fname, fops, 0666, (void *)me);
|
||||
px4_file_operations_t *file_ops = nullptr;
|
||||
register_driver(fname, file_ops, 0666, (void *)me);
|
||||
return me;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user