diff options
author | Christopher Haster <geky@geky.net> | 2022-11-10 19:31:04 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-10 19:31:04 +0300 |
commit | 5eb4ea808c6f3cc67dfa82c155ce8526c0e71a20 (patch) | |
tree | d48085ba1b445b35a1ea60513bd0ffd091d9da5e | |
parent | 4a927402a828e6d9e8e3c651563a4f8f16e8da20 (diff) | |
parent | 6c720dc2bb70317661f842be9da8cc426215c3af (diff) |
Merge pull request #675 from kevinior/lfs_file_rawopen_nomalloc
Fix unused function warning with LFS_NO_MALLOC
-rw-r--r-- | lfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |