BNode: CID 602323 explicitly ignore fCStatus return value in ctor
This is what it this whole push was all about
This commit is contained in:
@@ -109,7 +109,8 @@ BNode::BNode(const entry_ref* ref)
|
|||||||
fAttrFd(-1),
|
fAttrFd(-1),
|
||||||
fCStatus(B_NO_INIT)
|
fCStatus(B_NO_INIT)
|
||||||
{
|
{
|
||||||
SetTo(ref);
|
// fCStatus is set by SetTo(), ignore return value
|
||||||
|
(void)SetTo(ref);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -119,7 +120,8 @@ BNode::BNode(const BEntry* entry)
|
|||||||
fAttrFd(-1),
|
fAttrFd(-1),
|
||||||
fCStatus(B_NO_INIT)
|
fCStatus(B_NO_INIT)
|
||||||
{
|
{
|
||||||
SetTo(entry);
|
// fCStatus is set by SetTo(), ignore return value
|
||||||
|
(void)SetTo(entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -129,7 +131,8 @@ BNode::BNode(const char* path)
|
|||||||
fAttrFd(-1),
|
fAttrFd(-1),
|
||||||
fCStatus(B_NO_INIT)
|
fCStatus(B_NO_INIT)
|
||||||
{
|
{
|
||||||
SetTo(path);
|
// fCStatus is set by SetTo(), ignore return value
|
||||||
|
(void)SetTo(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -139,7 +142,8 @@ BNode::BNode(const BDirectory* dir, const char* path)
|
|||||||
fAttrFd(-1),
|
fAttrFd(-1),
|
||||||
fCStatus(B_NO_INIT)
|
fCStatus(B_NO_INIT)
|
||||||
{
|
{
|
||||||
SetTo(dir, path);
|
// fCStatus is set by SetTo(), ignore return value
|
||||||
|
(void)SetTo(dir, path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user