Johan,<br><br>I do not think there&#39;s a built-in way to make these warnings into errors... It would be easy enough to do, but it&#39;s not there right now.<br><br>One reason is that most projects were developed with the understanding that ${uninitialized_variable} resolves to empty. Many projects even depend on this, and so making it a warning first (that must be explicitly turned on), seemed to be the right way to approach it.<br>
<br>I&#39;m curious: what sorts of &quot;nasty bugs&quot; did you find...?<br><br><br>HTH,<br>David<br><br><br><div class="gmail_quote">On Tue, May 24, 2011 at 7:42 AM, Johan Björk <span dir="ltr">&lt;<a href="mailto:phb@spotify.com">phb@spotify.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi guys,<br>
<br>
I just discovered the --warn-uninitialized flag to cmake, and in the<br>
process found some really nasty bugs. Is there any way to enable this<br>
from the CMakeLists.txt files? Is there a corresponding<br>
--error-uninitialized value?<br>
<br>
Thanks<br>
/Johan<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br>