Closed DvdGiessen closed 8 months ago
Hi @DvdGiessen, thanks for this! Looks like quite an oversight.
Will bring this in next patch release.
I've gone ahead and added -Wmissing-prototypes into our Makefile (https://github.com/littlefs-project/littlefs/pull/884/commits/8f3f32d1f31e9b233a22eafa04257b5c9a073160), it seems like a useful warning. This should now be caught by the CI here and prevented in the future.
Should be merged now, thanks again for this!
Two new functions introduced in 2.6.0 (
lfs_fs_mkconsistent
, 259535ee73a792556bb16eebfbd076f467c5bdfa) and 2.8.0 (lfs_fs_grow
, 23505fa9fa4f2d863f046c0bfad8db2ca63cfb90) have internal "raw" functions which are missing thestatic
keyword.This was causing build failures in our builds in the MicroPython project when updating to the latest LittleFS, because we're building with
-Werror,-Wmissing-prototypes,-Wmissing-declarations
. See here and here for the build output.This PR adds the
static
keyword to these functions to fix these, similar to how all other internal functions in LittleFS are defined.