summaryrefslogtreecommitdiffstats
path: root/qemu-options.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin2021-02-02 23:52:53 +0100
committerMichael S. Tsirkin2021-02-05 14:52:59 +0100
commit43e229a52b464099afa9449aef587b9a3419b470 (patch)
treea710eab4f6b57ebbc51a4350295c64f26bb06517 /qemu-options.h
parentacpi: Permit OEM ID and OEM table ID fields to be changed (diff)
downloadqemu-43e229a52b464099afa9449aef587b9a3419b470.tar.gz
qemu-43e229a52b464099afa9449aef587b9a3419b470.tar.xz
qemu-43e229a52b464099afa9449aef587b9a3419b470.zip
acpi: use constants as strncpy limit
gcc is not smart enough to figure out length was validated before use as strncpy limit, resulting in this warning: inlined from ‘virt_set_oem_table_id’ at ../../hw/arm/virt.c:2197:5: /usr/include/aarch64-linux-gnu/bits/string_fortified.h:106:10: error: ‘__builtin_strncpy’ specified bound depends on the length of the source argument [-Werror=stringop-overflow=] Simplify things by using a constant limit instead. Fixes: 97fc5d507fca ("acpi: Permit OEM ID and OEM table ID fields to be changed") Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'qemu-options.h')
0 files changed, 0 insertions, 0 deletions