summary refs log tree commit diff stats
path: root/include/hw/qdev-core.h
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2017-07-17 13:36:06 +0100
committerPeter Maydell <peter.maydell@linaro.org>2017-07-17 13:36:06 +0100
commitd9a7b125d6b8048a503d10117ee8b7cbc44cc889 (patch)
treebc9696f5bc9e98be60dcbf48c722364d799548b6 /include/hw/qdev-core.h
parent6632f6ff96f0537fc34cdc00c760656fc62e23c5 (diff)
downloadfocaccia-qemu-d9a7b125d6b8048a503d10117ee8b7cbc44cc889.tar.gz
focaccia-qemu-d9a7b125d6b8048a503d10117ee8b7cbc44cc889.zip
qdev-properties.h: Explicitly set the default value for arraylen properties
In DEFINE_PROP_ARRAY, because we use a PropertyInfo (qdev_prop_arraylen)
which has a .set_default_value member we will set the field to a default
value. That default value will be zero, by the C rule that struct
initialization sets unmentioned members to zero if at least one member
is initialized. However it's clearer to state it explicitly.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 1499788408-10096-2-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'include/hw/qdev-core.h')
0 files changed, 0 insertions, 0 deletions