From cb090b3cf3efb940a900ca17520395d23bb9ab5d Mon Sep 17 00:00:00 2001 From: fvanroie <15969459+fvanroie@users.noreply.github.com> Date: Sun, 1 Aug 2021 02:10:54 +0200 Subject: [PATCH] Fix compiler warning --- lib/lv_fs_if/lv_fs_pc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/lv_fs_if/lv_fs_pc.c b/lib/lv_fs_if/lv_fs_pc.c index d32e1418..a9277cb0 100644 --- a/lib/lv_fs_if/lv_fs_pc.c +++ b/lib/lv_fs_if/lv_fs_pc.c @@ -302,6 +302,8 @@ static lv_fs_res_t fs_trunc(lv_fs_drv_t* drv, void* file_p) fflush(*fp); /*If not syncronized fclose can write the truncated part*/ uint32_t p = ftell(*fp); + (void)p; // unused + // ftruncate(fileno(*fp), p); return LV_FS_RES_OK; }