Skip to content

Commit

Permalink
Fix IFS compile warnings/errors (#2673)
Browse files Browse the repository at this point in the history
This PR improves the IFS `ObjectBuffer` implementation to fix 'hidden virtual method' warnings produced by more recent compilers. The class is just a helper/wrapper with a set of custom 'write' methods, so shouldn't have used inheritance in the first place.

Also fixes an  'uninitialised variable' warning in the `Spiffs` IFS library, identified by running IFS integration tests through valgrind.
  • Loading branch information
mikee47 authored Oct 12, 2023
1 parent 6591e72 commit ee881ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sming/Components/IFS
2 changes: 1 addition & 1 deletion Sming/Libraries/Spiffs/src/include/IFS/SPIFFS/FileSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class FileSystem : public IFileSystem
Storage::Partition partition;
IProfiler* profiler{nullptr};
SpiffsMetaBuffer metaCache[SPIFF_FILEDESC_COUNT];
spiffs fs;
spiffs fs{};
uint8_t workBuffer[LOG_PAGE_SIZE * 2];
spiffs_fd fileDescriptors[SPIFF_FILEDESC_COUNT];
uint8_t cache[CACHE_SIZE];
Expand Down

0 comments on commit ee881ef

Please sign in to comment.