Skip to content

Commit 7438567

Browse files
committed
Clarify comments on uninitialized variable warning
1 parent 23213af commit 7438567

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/code-quality/c6001.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ int f( bool b )
8686
{
8787
int i;
8888
89-
use(i); // use assumes its argument is already initialized due to the _In_ annotation
89+
use(i); // uninitialized variable warning because of _In_ annotation on use
9090
9191
if ( b )
9292
{
9393
i = 0;
9494
}
95-
return i; // i is uninitialized if b is false
95+
return i;
9696
}
9797
```
9898

0 commit comments

Comments
 (0)