This is just ctest&#39;s way of helping you get rid of your warnings. All warnings should be treated as errors... (Just joking, please don&#39;t flame... :-)<br><br><br>git blame shows that line as having been last modified in 2004. Specifically:<br>
<br>git blame -- Source/CTest/cmCTestBuildHandler.cxx<br><br>  8a2bedda (Ken Martin     2004-09-07 10:37:39 -0400   47)   &quot;([^ :]+):([0-9]+): ([^ \\t])&quot;,<br><br>Regardless of the reason or justification, it&#39;s been that way for nearly 7 years. I would venture a guess to say that some old compiler from the 7-years-ago era had error output that matched such lines.<br>
<br>Better to &quot;too aggressively&quot; identify errors than to miss some.<br><br>You could use a custom error exception regex to avoid reporting these warning lines as errors if you can&#39;t simply eliminate the warnings.<br>
<br>I&#39;d rather not remove it as a built-in error regex unless the vast majority of people listening in here speak up in opposition... Keeping it the same means no change in behavior. Removing it means NOT matching some lines as errors that are presently matched as errors -- bad news if it really is an error line for somebody&#39;s build...<br>
<br><br>HTH,<br>David<br><br><br><div class="gmail_quote">On Wed, May 18, 2011 at 10:29 AM, Zach Mullen <span dir="ltr">&lt;<a href="mailto:zach.mullen@kitware.com">zach.mullen@kitware.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;">
Hello,<div><br></div><div>JC and I discovered some weird behavior in CTest where some warnings were being reported as errors in Build.xml.  After some digging I found that the output was matching one of the cmCTestErrorMatches, specifically &quot;([^ :]+):([0-9]+): ([^ \\t])&quot;.</div>

<div><br></div><div>This is occurring on gcc 4.2.1 on a mac.  What&#39;s the justification for having this as an error regex?</div><div><br></div><div>Attached the relevant part of Build.xml.</div><div><br></div><div><br>

</div><div><div>&lt;Error&gt;</div><div><span style="white-space: pre-wrap;">                </span>&lt;BuildLogLine&gt;5438&lt;/BuildLogLine&gt;</div><div><span style="white-space: pre-wrap;">                </span>&lt;Text&gt; /usr/include/secure/_stdio.h:67:1: ,</div>

<div>&lt;/Text&gt;</div><div><span style="white-space: pre-wrap;">                </span>&lt;SourceFile&gt;/Users/kitware/Dashboards/Nightly/Slicer-build-64bits-QT4.7-PythonQt-With-Tcl-NoCLI-Release-nightly/ /usr/include/secure/_stdio.h&lt;/SourceFile&gt;</div>

<div><span style="white-space: pre-wrap;">                </span>&lt;SourceLineNumber&gt;67&lt;/SourceLineNumber&gt;</div><div><span style="white-space: pre-wrap;">                </span>&lt;PreContext&gt;                 from /.../Slicer-build-64bits-QT4.7-PythonQt-With-Tcl-NoCLI-Release-nightly/cmcurl/setup.h:101,</div>

<div>-- Performing Test HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC - Success</div><div>-- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC</div><div>[ 20%] yes</div><div>Building C object SRC/CMakeFiles/lapack.dir/sspevd.c.o</div>

<div>checking for mode_t... yes</div><div>                 from /.../Slicer-build-64bits-QT4.7-PythonQt-With-Tcl-NoCLI-Release-nightly/cmcurl/setup.h:101/.../Slicer-build-64bits-QT4.7-PythonQt-With-Tcl-NoCLI-Release-nightly/cmcurl/slicerlibcurl/slicerlibcurl/mprintf.h:48:1:,</div>

<div>                 from /.../Slicer-build-64bits-QT4.7-PythonQt-With-Tcl-NoCLI-Release-nightly/cmcurl/hostsyn.c:24 :</div><div>&lt;/PreContext&gt;</div><div><span style="white-space: pre-wrap;">                </span>&lt;PostContext&gt;                 from /.../Slicer-build-64bits-QT4.7-PythonQt-With-Tcl-NoCLI-Release-nightly/cmcurl/hostthre.c:24warning: In file included from /.../Slicer-build-64bits-QT4.7-PythonQt-With-Tcl-NoCLI-Release-nightly/cmcurl/http_digest.c:44:</div>

<div>warning: :</div><div>warning: this is the location of the previous definition/.../Slicer-build-64bits-QT4.7-PythonQt-With-Tcl-NoCLI-Release-nightly/cmcurl/slicerlibcurl/slicerlibcurl/mprintf.h:49:1:/usr/include/secure/_stdio.h:60:1:&quot;vsprintf&quot; redefined</div>

<div><br></div><div>checking for pid_t... [ 20%] Building C object SRC/CMakeFiles/lapack.dir/sspevx.c.o</div><div>yes</div><div>checking for size_t... yes</div><div>checking for uid_t in sys/types.h... yes</div><div>checking pw_gecos in struct pwd... -- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC - Success</div>

<div>[ 20%] -- Performing Test HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC&lt;/PostContext&gt;</div><div><span style="white-space: pre-wrap;">                </span>&lt;RepeatCount&gt;0&lt;/RepeatCount&gt;</div><div>&lt;/Error&gt;</div>
<div><br></div><div>Thanks,</div><br>-- <br>Zach Mullen<div>R &amp; D Engineer<br>Kitware Inc.<br><a href="tel:%28919%29%20969-6990%20x314" value="+19199696990" target="_blank">(919) 969-6990 x314</a></div><br>
</div>
<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>