Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Commit 61b22eb

Browse files
committed
warnings: mute unused variable warning
../../../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 <yury@shurup.com>
1 parent ab7ed3c commit 61b22eb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/viewer/datasource.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ void
270270
mcview_set_byte (WView *view, off_t offset, byte b)
271271
{
272272
(void) &b;
273+
(void) offset;
273274

274275
g_assert (offset < mcview_get_filesize (view));
275276
g_assert (view->datasource == DS_FILE);

0 commit comments

Comments
 (0)