RE: Sample Program for Code Analysis Tool

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi Beth,

I expected to see warning 6031 about the return value not
being checked. I'm not getting that warning. Now what am
I not understanding? Shouldn't it give a warning? Why isn't it?

According to the sample code, the return value of the AllocateNode()
function has been assigned to the newNode value, so that return value
would be checked in the assignment. To invoke that warning 6031, you can
call that function stand alone without retrieve its return value, for
example:

AllocateNode();

I suggest you can also refer to the following MSDN article:

http://msdn2.microsoft.com/en-us/library/81s4zzd4.aspx


Thanks!

Best regards,

Gary Chang
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages

  • Re: String problem
    ... To use the jcode library, set $KCODE and then require the library. ... Setting $KCODE first is important, and you will receive a warning if you ... which should refer to nouns. ...
    (comp.lang.ruby)
  • Re: String problem
    ... To use the jcode library, set $KCODE and then require the library. ... Setting $KCODE first is important, and you will receive a warning if you ... which should refer to nouns. ...
    (comp.lang.ruby)
  • RE: Maketext and UTF-8
    ... Is there a more specific list I can refer this to? ... Subject: Maketext and UTF-8 ... How do I get rid of that warning? ... To unsubscribe, e-mail: beginners-unsubscribe@perl.org ...
    (perl.beginners)
  • Re: VC2008 dpiaware manifest?
    ... That is a warning but not an error. ... not a standard part of application manifest schema elements. ... You may refer to: ...
    (microsoft.public.vc.mfc)
  • Re: Adding gpib support to Matlab on Linux ?
    ... gpib.c:219: warning: assignment makes pointer from integer without a cast ...
    (comp.soft-sys.matlab)