소스 검색

Merge pull request #675 from kevinior/lfs_file_rawopen_nomalloc

Fix unused function warning with LFS_NO_MALLOC
Christopher Haster 3 년 전
부모
커밋
5eb4ea808c
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      lfs.c

+ 2 - 0
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