Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/littlefs-project/littlefs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Haster <geky@geky.net>2022-11-10 19:31:04 +0300
committerGitHub <noreply@github.com>2022-11-10 19:31:04 +0300
commit5eb4ea808c6f3cc67dfa82c155ce8526c0e71a20 (patch)
treed48085ba1b445b35a1ea60513bd0ffd091d9da5e
parent4a927402a828e6d9e8e3c651563a4f8f16e8da20 (diff)
parent6c720dc2bb70317661f842be9da8cc426215c3af (diff)
Merge pull request #675 from kevinior/lfs_file_rawopen_nomalloc
Fix unused function warning with LFS_NO_MALLOC
-rw-r--r--lfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lfs.c b/lfs.c
index 117595e..6a56f94 100644
--- a/lfs.c
+++ b/lfs.c
@@ -2998,12 +2998,14 @@ cleanup:
return err;
}
+#ifndef LFS_NO_MALLOC
static int lfs_file_rawopen(lfs_t *lfs, lfs_file_t *file,
const char *path, int flags) {
static const struct lfs_file_config defaults = {0};
int err = lfs_file_rawopencfg(lfs, file, path, flags, &defaults);
return err;
}
+#endif
static int lfs_file_rawclose(lfs_t *lfs, lfs_file_t *file) {
#ifndef LFS_READONLY