Fixed warnings: possibly uninitialized variable, missing friend classifier (struct/class).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11558 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1315,7 +1315,7 @@ BPlusTree::RemoveDuplicate(Transaction &transaction, bplustree_node *node, Cache
|
||||
// Remove value from a duplicate node!
|
||||
//
|
||||
|
||||
duplicate_array *array;
|
||||
duplicate_array *array = NULL;
|
||||
|
||||
if (duplicate->LeftLink() != BPLUSTREE_NULL) {
|
||||
FATAL(("invalid duplicate node: first left link points to %Ld!\n", duplicate->LeftLink()));
|
||||
|
||||
@@ -248,8 +248,8 @@ class BPlusTree {
|
||||
void RemoveIterator(TreeIterator *iterator);
|
||||
|
||||
private:
|
||||
friend TreeIterator;
|
||||
friend CachedNode;
|
||||
friend class TreeIterator;
|
||||
friend class CachedNode;
|
||||
|
||||
Inode *fStream;
|
||||
bplustree_header *fHeader;
|
||||
@@ -298,8 +298,8 @@ class TreeIterator {
|
||||
bool fIsFragment;
|
||||
|
||||
private:
|
||||
friend Chain<TreeIterator>;
|
||||
friend BPlusTree;
|
||||
friend class Chain<TreeIterator>;
|
||||
friend class BPlusTree;
|
||||
|
||||
void Update(off_t offset, off_t nextOffset, uint16 keyIndex, uint16 splitAt, int8 change);
|
||||
void Stop();
|
||||
|
||||
@@ -291,8 +291,8 @@ class AttributeIterator {
|
||||
void *fBuffer;
|
||||
|
||||
private:
|
||||
friend Chain<AttributeIterator>;
|
||||
friend Inode;
|
||||
friend class Chain<AttributeIterator>;
|
||||
friend class Inode;
|
||||
|
||||
void Update(uint16 index, int8 change);
|
||||
AttributeIterator *fNext;
|
||||
|
||||
@@ -66,7 +66,7 @@ class Journal {
|
||||
inline uint32 FreeLogBlocks() const;
|
||||
|
||||
private:
|
||||
friend log_entry;
|
||||
friend struct log_entry;
|
||||
|
||||
static void blockNotify(int32 transactionID, void *arg);
|
||||
status_t TransactionDone(bool success);
|
||||
|
||||
@@ -72,7 +72,8 @@ class Query {
|
||||
int32 fToken;
|
||||
|
||||
private:
|
||||
friend Chain<Query>;
|
||||
friend class Chain<Query>;
|
||||
|
||||
Query *fNext;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user