Skip to content

Commit 27a7eb7

Browse files
authored
Merge pull request #819 from Julow/tools-warning
Fix compiler warnings in src/tools
2 parents d9bb893 + 90c404a commit 27a7eb7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/tools/parse_request_data.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,14 +225,14 @@ let intern () =
225225
match ch with
226226
| 'j' ->
227227
let a = ref 0L in
228-
for i = 0 to 7 do
228+
for _ = 0 to 7 do
229229
a :=
230230
Int64.logor (Int64.shift_left !a 8) (Int64.of_int (read8u ()))
231231
done;
232232
{desc = Int64 !a; start; fin = start + 9}
233233
| 'i' ->
234234
let a = ref 0l in
235-
for i = 0 to 3 do
235+
for _ = 0 to 3 do
236236
a :=
237237
Int32.logor (Int32.shift_left !a 8) (Int32.of_int (read8u ()))
238238
done;
@@ -241,7 +241,7 @@ let intern () =
241241
let c = read8u () in
242242
assert (c = 1);
243243
let a = ref 0n in
244-
for i = 0 to 7 do
244+
for _ = 0 to 7 do
245245
a :=
246246
Nativeint.logor
247247
(Nativeint.shift_left !a 8)
@@ -268,7 +268,7 @@ let rec print f v =
268268
| _ -> assert false
269269
else
270270
match v.desc with
271-
| Block (t, [||], n) -> Format.fprintf f "@[<1>{%d:}@]" t
271+
| Block (t, [||], _n) -> Format.fprintf f "@[<1>{%d:}@]" t
272272
| Block (t, a, n) ->
273273
Format.fprintf f "@[<1>(%d){%d:" n t;
274274
Array.iter (fun v -> Format.fprintf f "@ %a" print v) a;

0 commit comments

Comments
 (0)