[libvirt PATCH 1/4] util: refactor code to workaround gcc 10.1.0 bug