Skip to content

Commit

Permalink
warnings: mute unused variable warning
Browse files Browse the repository at this point in the history
../../../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>
  • Loading branch information
zyv committed Jun 3, 2024
1 parent ab7ed3c commit 61b22eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/viewer/datasource.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 61b22eb

Please sign in to comment.