Skip to content

Commit

Permalink
Fix unused function warning with LFS_NO_MALLOC
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin ORourke authored and Kevin ORourke committed Apr 25, 2022
1 parent 40dba4a commit 6c720dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2998,12 +2998,14 @@ static int lfs_file_rawopencfg(lfs_t *lfs, lfs_file_t *file,
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
Expand Down

0 comments on commit 6c720dc

Please # to comment.