Skip to content

Commit 76fd9d8

Browse files
committed
Mark some C variables as unused (#1541)
from antalsz/unused-c-variables
1 parent 2a1c07a commit 76fd9d8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Thu Dec 13 12:49:42 CEST 2022
66
- Restore compatibility with the compielr command line by accepting the
77
`-safe-string` flag as a no-op instead of rejecting it. (#1544, fixes
88
#1518)
9+
- mark some C variables as unused to remove warnings (#1541, @antalsz)
910

1011
merlin 4.7
1112
==========

src/platform/platform_misc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ value ml_merlin_fs_exact_case_basename(value path)
8080

8181
value ml_merlin_fs_exact_case_basename(value path)
8282
{
83+
(void)path;
8384
return Val_int(0);
8485
}
8586

@@ -187,6 +188,8 @@ value ml_merlin_dont_inherit_stdio(value vstatus)
187188

188189
CAMLprim value ml_merlin_system_command(value v_command, value v_cwd)
189190
{
191+
(void)v_command;
192+
(void)v_cwd;
190193
caml_invalid_argument("ml_merlin_system_command is only available on windows");
191194
}
192195

0 commit comments

Comments
 (0)