mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-01 04:46:51 +08:00
Warning fixed (reported by OCaml 3.10)
This commit is contained in:
@@ -249,11 +249,11 @@ let rec sprint_value = fun buf i _type v ->
|
||||
| ArrayType t, Array values ->
|
||||
(** Put the size first, then the values *)
|
||||
let n = Array.length values in
|
||||
sprint_value buf i (Scalar "uint8") (Int n);
|
||||
ignore (sprint_value buf i (Scalar "uint8") (Int n));
|
||||
let type_of_elt = Scalar t in
|
||||
let s = sizeof type_of_elt in
|
||||
for j = 0 to n - 1 do
|
||||
sprint_value buf (i+1+j*s) type_of_elt values.(j)
|
||||
ignore (sprint_value buf (i+1+j*s) type_of_elt values.(j))
|
||||
done;
|
||||
1 + n * s
|
||||
| (Scalar x|ArrayType x), _ -> failwith (sprintf "Pprz.sprint_value (%s)" x)
|
||||
|
||||
Reference in New Issue
Block a user