@@ -166,28 +166,28 @@ let test_of_bigarray_large_length () =
166
166
let test_set_len_too_big () =
167
167
let x = Cstruct. create 0 in
168
168
try
169
- let y = Cstruct. set_len x 1 in
169
+ let [ @ ocaml.warning " -3 " ] y = Cstruct. set_len x 1 in
170
170
failwith (Printf. sprintf " test_set_len_too_big: %s" (to_string y))
171
171
with Invalid_argument _ -> ()
172
172
173
173
let test_set_len_too_small () =
174
174
let x = Cstruct. create 0 in
175
175
try
176
- let y = Cstruct. set_len x (- 1 ) in
176
+ let [ @ ocaml.warning " -3 " ] y = Cstruct. set_len x (- 1 ) in
177
177
failwith (Printf. sprintf " test_set_len_too_small: %s" (to_string y))
178
178
with Invalid_argument _ -> ()
179
179
180
180
let test_add_len_too_big () =
181
181
let x = Cstruct. create 0 in
182
182
try
183
- let y = Cstruct. add_len x 1 in
183
+ let [ @ ocaml.warning " -3 " ] y = Cstruct. add_len x 1 in
184
184
failwith (Printf. sprintf " test_add_len_too_big: %s" (to_string y))
185
185
with Invalid_argument _ -> ()
186
186
187
187
let test_add_len_too_small () =
188
188
let x = Cstruct. create 0 in
189
189
try
190
- let y = Cstruct. add_len x (- 1 ) in
190
+ let [ @ ocaml.warning " -3 " ] y = Cstruct. add_len x (- 1 ) in
191
191
failwith (Printf. sprintf " test_add_len_too_small: %s" (to_string y))
192
192
with Invalid_argument _ -> ()
193
193
0 commit comments