mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 18:49:03 -04:00
Fix "control reaches end of non-void function" warning.
This is harmless because it will always be set to one of the items in the TargetType enum.
This commit is contained in:
parent
c2a3321540
commit
64df216836
@ -167,5 +167,10 @@ class CoreExport MessageTarget
|
||||
case TYPE_SERVER:
|
||||
return *Get<std::string>();
|
||||
}
|
||||
|
||||
// We should never reach this point during a normal execution but
|
||||
// handle it just in case.
|
||||
static const std::string target = "*";
|
||||
return target;
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user