Commit 99435aa7 authored by kent@mysql.com's avatar kent@mysql.com

NdbIndexStat.cpp, NdbIndexStat.hpp, Suma.hpp portability changes from pekka

parent bd18c9f2
...@@ -85,6 +85,11 @@ private: ...@@ -85,6 +85,11 @@ private:
* *
* TODO use more compact key format * TODO use more compact key format
*/ */
struct Pointer;
friend struct Pointer;
struct Entry;
friend struct Entry;
struct Area;
friend struct Area; friend struct Area;
struct Pointer { struct Pointer {
Uint16 m_pos; Uint16 m_pos;
......
...@@ -148,6 +148,7 @@ public: ...@@ -148,6 +148,7 @@ public:
* Subscriptions * Subscriptions
*/ */
class Table; class Table;
friend class Table;
typedef Ptr<Table> TablePtr; typedef Ptr<Table> TablePtr;
struct SyncRecord { struct SyncRecord {
......
...@@ -238,6 +238,7 @@ NdbIndexStat::stat_oldest(const Area& a) ...@@ -238,6 +238,7 @@ NdbIndexStat::stat_oldest(const Area& a)
{ {
Uint32 i, k, m; Uint32 i, k, m;
bool found = false; bool found = false;
m = ~(Uint32)0; // shut up incorrect CC warning
for (i = 0; i < a.m_entries; i++) { for (i = 0; i < a.m_entries; i++) {
Pointer& p = a.get_pointer(i); Pointer& p = a.get_pointer(i);
Entry& e = a.get_entry(i); Entry& e = a.get_entry(i);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment