[Insight-developers] Warnings in VC7

Miller, James V (Research) millerjv at crd . ge . com
Mon, 26 Aug 2002 10:18:29 -0400


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_000_01C24D0B.7366832A
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C24D0B.7366832A"


------_=_NextPart_001_01C24D0B.7366832A
Content-Type: text/plain;
	charset="iso-8859-1"

Just saw this warning while building ITK with .NET (VC7).
 
offset[i] = - nit.GetStride(i);   // offset is a FixedArray<long,...>, nit.GetStride() is unsigned

 c:\projects\I2\Insight\Code\BasicFilters\itkZeroCrossingImageFilter.txx(144) : warning C4146: unary
minus operator applied to unsigned type, result still unsigned

Given the warning, I do not know what the result of the line will be. I'll probably write a little
test to check.

I read an article a while back that Microsoft went from having one the least standards compliant
compilers to having one of the most standard compliant compilers (with the exception of not having
partial specialization).

Jim Miller 
_____________________________________
Visualization & Computer Vision
GE Research
Bldg. KW, Room C218B
P.O. Box 8, Schenectady NY 12301

millerjv@research.ge.com <mailto:millerjv@research.ge.com> 

james.miller@research.ge.com
(518) 387-4005, Dial Comm: 8*833-4005, 
Cell: (518) 505-7065, Fax: (518) 387-6981 

 <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

 

------_=_NextPart_001_01C24D0B.7366832A
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 6.00.2715.400" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=346340914-26082002><FONT size=2>Just saw this warning while 
building ITK with .NET (VC7).</FONT></SPAN></DIV>
<DIV><SPAN class=346340914-26082002><FONT size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=346340914-26082002><FONT size=2>offset[i] = - 
nit.GetStride(i);<SPAN class=346340914-26082002>&nbsp;&nbsp; // <SPAN 
class=346340914-26082002><FONT size=2>offset is a FixedArray&lt;long,...&gt;, 
nit.GetStride() is unsigned</FONT></SPAN></SPAN></FONT></DIV></SPAN>
<DIV class=Section1>
<P class=MsoNormal>&nbsp;<FONT 
size=1>c:\projects\I2\Insight\Code\BasicFilters\itkZeroCrossingImageFilter.txx(144) 
: warning C4146: unary minus operator applied to unsigned type, result still 
unsigned</FONT></P>
<P class=MsoNormal><SPAN class=346340914-26082002><FONT size=1><SPAN 
class=346340914-26082002><FONT size=2>Given the warning, I do not know what the 
result of the line will be. I'll probably write a little test to 
check.</FONT></SPAN></FONT></SPAN></P>
<P class=MsoNormal><SPAN class=346340914-26082002><FONT size=2><SPAN 
class=346340914-26082002>I read an article a while back that Microsoft went from 
having one the least standards compliant compilers to having one of the most 
standard compliant compilers (with the exception of not having partial 
specialization).</SPAN></FONT></SPAN></P>
<P style="MARGIN: 0in 0in 0pt"><B><SPAN 
style="COLOR: navy; FONT-FAMILY: 'Comic Sans MS'">Jim Miller</SPAN></B> 
<BR><B><I><SPAN 
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: Arial">_____________________________________</SPAN></I></B><BR><EM><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Arial">Visualization &amp; 
Computer Vision</SPAN></EM><I><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Arial"><BR><EM>GE 
Research</EM><BR><EM>Bldg. KW, Room C218B</EM><BR><EM>P.O. Box 8, Schenectady NY 
12301</EM><BR><BR></SPAN></I><EM><U><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: blue"><A 
href="mailto:millerjv@research.ge.com">millerjv@research.ge.com</A></SPAN></U></EM></P>
<P style="MARGIN: 0in 0in 0pt"><EM><U><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: blue">james.miller@research.ge.com</SPAN></U></EM><BR><I><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Arial">(518) 387-4005, Dial 
Comm: 8*833-4005, </SPAN></I><BR><I><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Arial">Cell: (518) 505-7065, 
Fax: (518) 387-6981</SPAN></I> </P>
<P class=MsoNormal>&nbsp;<?xml:namespace prefix = o ns = 
"urn:schemas-microsoft-com:office:office" /><o:p></o:p></P></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------_=_NextPart_001_01C24D0B.7366832A--

------_=_NextPart_000_01C24D0B.7366832A
Content-Type: application/octet-stream;
	name="James Miller (E-mail).vcf"
Content-Disposition: attachment;
	filename="James Miller (E-mail).vcf"

BEGIN:VCARD
VERSION:2.1
N:Miller;James
FN:James Miller (E-mail)
ORG:GE Reseach;Imaging Technologies
TEL;WORK;VOICE:(518) 387-4005
TEL;WORK;VOICE:*833-4005
TEL;CELL;VOICE:(518) 505-7065
TEL;WORK;FAX:(518) 387-6981
ADR;WORK;ENCODING=QUOTED-PRINTABLE:;Visualization and Computer Vision;BLDG KW, RM C218B=0D=0APO Box 8;Schenecta=
dy;NY;12301;United States of America
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Visualization and Computer Vision=0D=0ABLDG KW, RM C218B=0D=0APO Box 8=0D=
=0ASchenectady, NY 12301=0D=0AUnited States of America
EMAIL;PREF;INTERNET:millerjv@research.ge.com
REV:20020405T145025Z
END:VCARD

------_=_NextPart_000_01C24D0B.7366832A--