From 3dd791c92c5fe6272e163eb13ebc40f3be645010 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Mon, 7 May 2018 13:17:35 +0200 Subject: [PATCH] vfile: rename fops to fix shadowing warning for GCC 8.0.1 --- src/lib/drivers/device/posix/vfile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/drivers/device/posix/vfile.cpp b/src/lib/drivers/device/posix/vfile.cpp index 3761a9e386..5c2eafa0e3 100644 --- a/src/lib/drivers/device/posix/vfile.cpp +++ b/src/lib/drivers/device/posix/vfile.cpp @@ -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; }