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!
|
// Remove value from a duplicate node!
|
||||||
//
|
//
|
||||||
|
|
||||||
duplicate_array *array;
|
duplicate_array *array = NULL;
|
||||||
|
|
||||||
if (duplicate->LeftLink() != BPLUSTREE_NULL) {
|
if (duplicate->LeftLink() != BPLUSTREE_NULL) {
|
||||||
FATAL(("invalid duplicate node: first left link points to %Ld!\n", duplicate->LeftLink()));
|
FATAL(("invalid duplicate node: first left link points to %Ld!\n", duplicate->LeftLink()));
|
||||||
|
|||||||
@@ -248,8 +248,8 @@ class BPlusTree {
|
|||||||
void RemoveIterator(TreeIterator *iterator);
|
void RemoveIterator(TreeIterator *iterator);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend TreeIterator;
|
friend class TreeIterator;
|
||||||
friend CachedNode;
|
friend class CachedNode;
|
||||||
|
|
||||||
Inode *fStream;
|
Inode *fStream;
|
||||||
bplustree_header *fHeader;
|
bplustree_header *fHeader;
|
||||||
@@ -298,8 +298,8 @@ class TreeIterator {
|
|||||||
bool fIsFragment;
|
bool fIsFragment;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend Chain<TreeIterator>;
|
friend class Chain<TreeIterator>;
|
||||||
friend BPlusTree;
|
friend class BPlusTree;
|
||||||
|
|
||||||
void Update(off_t offset, off_t nextOffset, uint16 keyIndex, uint16 splitAt, int8 change);
|
void Update(off_t offset, off_t nextOffset, uint16 keyIndex, uint16 splitAt, int8 change);
|
||||||
void Stop();
|
void Stop();
|
||||||
|
|||||||
@@ -291,8 +291,8 @@ class AttributeIterator {
|
|||||||
void *fBuffer;
|
void *fBuffer;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend Chain<AttributeIterator>;
|
friend class Chain<AttributeIterator>;
|
||||||
friend Inode;
|
friend class Inode;
|
||||||
|
|
||||||
void Update(uint16 index, int8 change);
|
void Update(uint16 index, int8 change);
|
||||||
AttributeIterator *fNext;
|
AttributeIterator *fNext;
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ class Journal {
|
|||||||
inline uint32 FreeLogBlocks() const;
|
inline uint32 FreeLogBlocks() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend log_entry;
|
friend struct log_entry;
|
||||||
|
|
||||||
static void blockNotify(int32 transactionID, void *arg);
|
static void blockNotify(int32 transactionID, void *arg);
|
||||||
status_t TransactionDone(bool success);
|
status_t TransactionDone(bool success);
|
||||||
|
|||||||
@@ -72,7 +72,8 @@ class Query {
|
|||||||
int32 fToken;
|
int32 fToken;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend Chain<Query>;
|
friend class Chain<Query>;
|
||||||
|
|
||||||
Query *fNext;
|
Query *fNext;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user