We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28eb5c9 commit aeba337Copy full SHA for aeba337
lfs.c
@@ -264,6 +264,7 @@ static int lfs_bd_flush_direct(lfs_t *lfs,
264
return err;
265
}
266
267
+#ifdef LFS_CHECK_DATA
268
if (validate) {
269
// check data on disk
270
lfs_cache_drop(lfs, rcache);
@@ -278,6 +279,10 @@ static int lfs_bd_flush_direct(lfs_t *lfs,
278
279
return LFS_ERR_CORRUPT;
280
281
282
+#else
283
+ (void)validate;
284
+ (void)rcache;
285
+#endif
286
287
288
0 commit comments