<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 1, 2013 at 1:46 AM, Duncan Sands <span dir="ltr"><<a href="mailto:baldrick@free.fr" target="_blank" class="cremed">baldrick@free.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">GCC thinks that this variable might be used uninitialized (it isn't).</blockquote></div><br></div><div class="gmail_extra" style>
Sorry to keep kicking the horse here, but I really oppose adding dead stores to silence a broken warning.</div><div class="gmail_extra" style><br></div><div class="gmail_extra" style>We'll no longer be able to use Valgrind to catch a bug where the control flow that intends to initialize this variable suddenly changes and fails to do so in one case. =[ That seems really bad.</div>
<div class="gmail_extra" style><br></div><div class="gmail_extra" style>Clang's warnings don't have this false positive, and there is even a way to silence GCCs in modern GCCs (-Wno-maybe-uninitialized) because of this problem. Can we just turn off old GCC -Wuninitialized and rely on the modern compilers' warnings instead?</div>
</div>