|
From: | Zenghui Yu |
Subject: | Re: [PATCH] multi-process: Initialize variables declared with g_auto* |
Date: | Thu, 4 Mar 2021 10:12:30 +0800 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 |
On 2021/3/3 18:17, Daniel P. Berrangé wrote:
This is a bit wierd. There should only be risk of uninitialized variable if there is a 'return' or 'goto' statement between the variable declaration and and initialization, which is not the case in either scenario here. What OS distro and compiler + version are you seeing this with ?
This was noticed when compiling QEMU with gcc-7.3.0 on CentOS. Thanks, Zenghui
[Prev in Thread] | Current Thread | [Next in Thread] |