RE: Sample Program for Code Analysis Tool
- From: v-garych@xxxxxxxxxxxxxxxxxxxx ("Gary Chang[MSFT]")
- Date: Tue, 22 Aug 2006 06:57:39 GMT
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.
.
- References:
- Sample Program for Code Analysis Tool
- From: beth_123@noemail.noemail
- RE: Sample Program for Code Analysis Tool
- From: "Gary Chang[MSFT]"
- RE: Sample Program for Code Analysis Tool
- From: beth_123@noemail.noemail
- Sample Program for Code Analysis Tool
- Prev by Date: RE: Sample Program for Code Analysis Tool
- Next by Date: debugger loading only int and ptr symbols in a dll.
- Previous by thread: RE: Sample Program for Code Analysis Tool
- Next by thread: RE: Sample Program for Code Analysis Tool
- Index(es):
Relevant Pages
|