From 61b22eb606111e54947f501fd2277fb6185f0fdc Mon Sep 17 00:00:00 2001 From: "Yury V. Zaytsev" Date: Mon, 3 Jun 2024 21:06:19 +0200 Subject: [PATCH] warnings: mute unused variable warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ../../../src/viewer/datasource.c: In function ‘mcview_set_byte’: ../../../src/viewer/datasource.c:270:38: error: unused parameter ‘offset’ [-Werror=unused-parameter] 270 | mcview_set_byte (WView * view, off_t offset, byte b) | ~~~~~~^~~~~~ Signed-off-by: Yury V. Zaytsev --- src/viewer/datasource.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/viewer/datasource.c b/src/viewer/datasource.c index b59e1bd4b..d3b07758d 100644 --- a/src/viewer/datasource.c +++ b/src/viewer/datasource.c @@ -270,6 +270,7 @@ void mcview_set_byte (WView *view, off_t offset, byte b) { (void) &b; + (void) offset; g_assert (offset < mcview_get_filesize (view)); g_assert (view->datasource == DS_FILE);