mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
fix autobuild failures
server-tools/instance-manager/buffer.cc: fix typo server-tools/instance-manager/commands.cc: get rid of compiler warnings server-tools/instance-manager/guardian.cc: fix compiler warning server-tools/instance-manager/instance.cc: fix warnings server-tools/instance-manager/instance_map.cc: fix return value server-tools/instance-manager/instance_map.h: fix problem, caused autobuild failure. Looks like a gcc problem - "friend class <name>" doesn't work if specified before enclosed class <name> (this is not present in newer gcc versions)
This commit is contained in:
@@ -38,7 +38,6 @@ extern void free_groups(char **groups);
|
||||
|
||||
class Instance_map
|
||||
{
|
||||
friend class Iterator;
|
||||
public:
|
||||
/* Instance_map iterator */
|
||||
class Iterator
|
||||
@@ -54,6 +53,7 @@ public:
|
||||
void go_to_first();
|
||||
Instance *next();
|
||||
};
|
||||
friend class Iterator;
|
||||
public:
|
||||
/* returns a pointer to the instance or NULL, if there is no such instance */
|
||||
Instance *find(const char *name, uint name_len);
|
||||
|
||||
Reference in New Issue
Block a user