<html><head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
</head><body text="#000000" bgcolor="#FFFFFF">I have seen this when
building ITK 4.7.0 with Visual Studio 2013 SP4.<br>
<br>
Mike Jackson<br>
<br>
<blockquote style="border: 0px none;"
cite="mid:61245a514b0c972fc292a456832e3a23.squirrel@webmail.xs4all.nl"
type="cite">
<div style="margin:30px 25px 10px 25px;" class="__pbConvHr"><div
style="display:table;width:100%;border-top:1px solid
#EDEEF0;padding-top:5px"> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;width:100%">
<a moz-do-not-send="true" href="mailto:niels-xtk@xs4all.nl"
style="color:#737F92
!important;padding-right:6px;font-weight:bold;text-decoration:none
!important;">Niels Dekker</a></div> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;">
<font color="#9FA2A5"><span style="padding-left:6px">Tuesday, February
17, 2015 10:54 AM</span></font></div></div></div>
<div style="color:#888888;margin-left:24px;margin-right:24px;"
__pbrmquotes="true" class="__pbConvBody"><div>Floris Berendsen and I
encountered many (5O+) 'D9025' warnings when we<br>built ITK on Visual
Studio. The warning message text says:<br><br> cl : Command line
warning D9025: overriding '/W1' with '/w'<br><br>Do other Visual Studio
users also get these warnings, when compiling ITK? <br>We don't see them
at the dashboard,<br><a class="moz-txt-link-freetext" href="https://open.cdash.org/index.php?project=Insight">https://open.cdash.org/index.php?project=Insight</a><br><br>It
appears that the warnings are triggered by the macro<br>'itk_module_warnings_disable',
ironically. This macro from<br>"ITKModuleMacros.cmake" adds "-w" to the
compiler flags. Visual Studio<br>automatically adds "/W1" as well,
which causes the compiler warning. It<br>appears that the warning can be
avoided by a very small modification in<br>itk_module_warnings_disable:
use "/W0" instead of "-w", in<br>ITKModuleMacros.cmake:<br><br>
foreach(lang ${ARGN})<br> if(MSVC)<br> string(REGEX
REPLACE "(^| )[/-]W[0-4]( |$)" " "<br> - CMAKE_${lang}_FLAGS
"${CMAKE_${lang}_FLAGS} -w")<br> + CMAKE_${lang}_FLAGS
"${CMAKE_${lang}_FLAGS} /W0")<br><br>"/W0" has the same meaning as "/w",
see<br><a class="moz-txt-link-freetext" href="https://msdn.microsoft.com/en-us/library/thxezb7y.aspx">https://msdn.microsoft.com/en-us/library/thxezb7y.aspx</a> But it
appears<br>that when itk_module_warnings_disable adds "/W0", instead of
"-w", we<br>don't get those 'D9025' warnings.<br><br>We saw this issue
on both Visual Studio 2010 and Visual Studio 2013<br>(Update 4), and
various versions of CMake, including the latest release,<br>CMake 3.1.3.
We tried the ITK version from ITK.git.<br><br>Kind regards, Niels<br></div></div>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<div>Sent with <a href="http://www.getpostbox.com"><span style="color:
rgb(51, 102, 153);">Postbox</span></a></div></div>
</body></html>