From 52399860938de8af888ca8cd798ef46ccf98bcd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Fri, 22 Dec 2017 11:37:58 +0100 Subject: [PATCH] Silenced compiler warnings in ntfsrecover Silence the compiler warnings which were introduced in a recent update. --- ntfsprogs/ntfsrecover.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ntfsprogs/ntfsrecover.c b/ntfsprogs/ntfsrecover.c index 11a5e820..19366491 100644 --- a/ntfsprogs/ntfsrecover.c +++ b/ntfsprogs/ntfsrecover.c @@ -3698,7 +3698,7 @@ static int walkback(CONTEXT *ctx, const struct BUFFER *buf, u32 blk, * use a different layout of temporary blocks. */ -const struct BUFFER *find_latest_block(CONTEXT *ctx, u32 baseblk, +static const struct BUFFER *find_latest_block(CONTEXT *ctx, u32 baseblk, const struct BUFFER *basebuf) { le64 offset; @@ -3710,6 +3710,9 @@ const struct BUFFER *find_latest_block(CONTEXT *ctx, u32 baseblk, const struct BUFFER *curbuf; offset = basebuf->block.record.copy.file_offset; + curbuf = (const struct BUFFER*)NULL; + curlsn = const_cpu_to_le64(0); + prevblk = 0; curblk = baseblk; do { if (curblk < BASEBLKS) {