From a3e14c012d76fc8f7ad4c16ad9dc67e8995ce10e Mon Sep 17 00:00:00 2001 From: Riku Isokoski Date: Fri, 30 Dec 2022 23:31:31 +0200 Subject: src: Enable unused parameter warning Fix warnings. Some clang-formatting was necessary. DebugPins is unused and was removed. --- src/components/fs/FS.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/components/fs') diff --git a/src/components/fs/FS.cpp b/src/components/fs/FS.cpp index a67b6b3d..0bb59afa 100644 --- a/src/components/fs/FS.cpp +++ b/src/components/fs/FS.cpp @@ -115,7 +115,7 @@ lfs_ssize_t FS::GetFSSize() { ----------- Interface between littlefs and SpiNorFlash ----------- */ -int FS::SectorSync(const struct lfs_config* c) { +int FS::SectorSync(const struct lfs_config* /*c*/) { return 0; } @@ -147,7 +147,7 @@ int FS::SectorRead(const struct lfs_config* c, lfs_block_t block, lfs_off_t off, */ namespace { - lv_fs_res_t lvglOpen(lv_fs_drv_t* drv, void* file_p, const char* path, lv_fs_mode_t mode) { + lv_fs_res_t lvglOpen(lv_fs_drv_t* drv, void* file_p, const char* path, lv_fs_mode_t /*mode*/) { lfs_file_t* file = static_cast(file_p); FS* filesys = static_cast(drv->user_data); int res = filesys->FileOpen(file, path, LFS_O_RDONLY); @@ -200,4 +200,4 @@ void FS::LVGLFileSystemInit() { fs_drv.user_data = this; lv_fs_drv_register(&fs_drv); -} \ No newline at end of file +} -- cgit v1.2.3