|
|
| Bugzilla Link |
10863 |
| Version |
trunk |
| OS |
Linux |
| Reporter |
LLVM Bugzilla Contributor |
| CC |
@tkremenek |
Extended Description
Hi,
I am using scan-build (svn from 2011-09-02) to analyze c++ code and get a few false positives related to while loops in a threaded environment. Below is a code
snippet for which I get "Value stored to 'first' during its initialization is
never read" in a large projet:
bool first = true;
while( this->m_continue ) {
// some mutex
if( first ) {
first = false;
foo();
}
else {
bar();
}
}