<div dir="ltr">That sounds weird and buggy, that said, checking the version should work.<div><br></div><div style>David: do you mind reverting your patch temporarily to get Duncan's bots green while you look into it (if it'll be more than another hour or two)?</div>
<div style><br></div><div style>Thanks!</div><div style><br></div><div style>-eric</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 15, 2013 at 8:48 AM,  <span dir="ltr"><<a href="mailto:dag@cray.com" target="_blank">dag@cray.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">Duncan Sands <<a href="mailto:baldrick@free.fr">baldrick@free.fr</a>> writes:<br>

<br>
> Hi David, your -Wno-maybe-uninitialized changes broke one of my buildbots.<br>
> The reason is that gcc-4.3 accepts this flag, however if any kind of warning<br>
> is produced then it errors out saying it doesn't know -Wno-maybe-uninitialized.<br>
><br>
> For example, suppose empty.cpp is an empty file, and warn.cpp contains:<br>
><br>
>   int foo(int x, unsigned y) {<br>
>     return x == y;<br>
>   }<br>
><br>
> Then:<br>
><br>
> $ gcc -S empty.cpp -Wall -Wno-maybe-uninitialized<br>
> $ gcc -S warn.cpp -Wall -Wno-maybe-uninitialized<br>
> warn.cpp: In function ‘int foo(int, unsigned int)’:<br>
> warn.cpp:2: warning: comparison between signed and unsigned integer expressions<br>
> At global scope:<br>
> cc1plus: error: unrecognized command line option "-Wno-maybe-uninitialized"<br>
> $<br>
><br>
> This is clearly a gcc bug.  I don't know what the right approach to solving<br>
> this is though, any suggestions?<br>
<br>
</div></div>Grr...I wonder if this is a general problem with pre-4.6 gcc or only<br>
this specific version.<br>
<br>
I could check the gcc version and if it is pre-4.7 use<br>
-Wno-uninitialized.<br>
<span class="HOEnZb"><font color="#888888"><br>
                                   -David<br>
</font></span></blockquote></div><br></div>