cutils: squelch compiler warnings with custom paths
commita492e287e5d5d2b888e5f2580b4e9e41b6057a05
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 5 Oct 2023 12:48:50 +0000 (5 14:48 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Sun, 8 Oct 2023 19:08:27 +0000 (8 21:08 +0200)
treef25e7b3995953e0e01cdc9133f839bc5298f266b
parent24f9c07ac0b6acc38b8790b101d32944a2b64739
cutils: squelch compiler warnings with custom paths

Setting --bindir= to an absolute path that is shorter than the
prefix causes GCC to complain about array accesses out of bounds.
The code however is safe, so disable the warning and explain why
we are doing so.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
util/cutils.c