Fix some compiler warnings.
This commit is contained in:
parent
d53d754e32
commit
bb78154265
1 changed files with 12 additions and 4 deletions
|
@ -152,10 +152,18 @@ static config& find_ref(const std::string& id, config& cfg, bool remove = false)
|
|||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
// to be called from gdb
|
||||
config& find_ref(const char* id, config& cfg) {
|
||||
return find_ref(std::string(id),cfg);
|
||||
}
|
||||
|
||||
// to be called from gdb
|
||||
static config& find_ref(const char* id, config& cfg) {
|
||||
return find_ref(std::string(id),cfg);
|
||||
}
|
||||
|
||||
namespace {
|
||||
// avoid some compiler warnings in stricter mode.
|
||||
static config cfg;
|
||||
static config& result = find_ref("", cfg);
|
||||
} // namespace
|
||||
|
||||
#endif
|
||||
|
||||
static void expand_partialresolution(config& dst_cfg, const config& top_cfg)
|
||||
|
|
Loading…
Add table
Reference in a new issue