]> git.proxmox.com Git - mirror_qemu.git/commit
fsdev/p9array.h: check scalar type in P9ARRAY_NEW()
authorChristian Schoenebeck <qemu_oss@crudebyte.com>
Fri, 1 Oct 2021 14:27:13 +0000 (16:27 +0200)
committerChristian Schoenebeck <qemu_oss@crudebyte.com>
Wed, 27 Oct 2021 12:45:22 +0000 (14:45 +0200)
commitc0451f0bc4210d262268ff51c053a9277f20f862
tree1ed6c79d6c55ba850baf191994fc68e08c08e2eb
parent30e702abf6fa8a7f1e6ad11a75d6f3ab6fcb2155
fsdev/p9array.h: check scalar type in P9ARRAY_NEW()

Make sure at compile time that the scalar type of the array
requested to be created via P9ARRAY_NEW() matches the scalar
type of the passed auto reference variable (unique pointer).

Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Message-Id: <c1965e2a096835dc9e1d4d659dfb15d96755cbe0.1633097129.git.qemu_oss@crudebyte.com>
fsdev/p9array.h