@@ -141,7 +141,7 @@ class ArduinoFilesystemAdapter : public FilesystemAdapter {
141141 bool remove (const char *fn) override {
142142 return USE_FS .remove (fn);
143143 };
144- int ftw_root (std::function<int (const char *fpath)> fn) {
144+ int ftw_root (std::function<int (const char *fpath)> fn) override {
145145#if MOCPP_USE_FILEAPI == ARDUINO_LITTLEFS
146146 auto dir = USE_FS .open (MOCPP_FILENAME_PREFIX );
147147 if (!dir) {
@@ -244,7 +244,7 @@ class EspIdfFileAdapter : public FileAdapter {
244244 return fseek (file, offset, SEEK_SET );
245245 }
246246
247- int read () {
247+ int read () override {
248248 return fgetc (file);
249249 }
250250};
@@ -285,7 +285,7 @@ class EspIdfFilesystemAdapter : public FilesystemAdapter {
285285 return unlink (fn) == 0 ;
286286 }
287287
288- int ftw_root (std::function<int (const char *fpath)> fn) {
288+ int ftw_root (std::function<int (const char *fpath)> fn) override {
289289 // open MO root directory
290290 char dname [MOCPP_MAX_PATH_SIZE ];
291291 auto dlen = snprintf (dname, MOCPP_MAX_PATH_SIZE , " %s" , MOCPP_FILENAME_PREFIX );
@@ -399,7 +399,7 @@ class PosixFileAdapter : public FileAdapter {
399399 return fseek (file, offset, SEEK_SET );
400400 }
401401
402- int read () {
402+ int read () override {
403403 return fgetc (file);
404404 }
405405};
@@ -435,7 +435,7 @@ class PosixFilesystemAdapter : public FilesystemAdapter {
435435 return ::remove (fn) == 0 ;
436436 }
437437
438- int ftw_root (std::function<int (const char *fpath)> fn) {
438+ int ftw_root (std::function<int (const char *fpath)> fn) override {
439439 auto dir = opendir (MOCPP_FILENAME_PREFIX ); // use c_str() to convert the path string to a C-style string
440440 if (!dir) {
441441 MOCPP_DBG_ERR (" cannot open root directory: " MOCPP_FILENAME_PREFIX );
0 commit comments