diff options
author | Sadie Powell <sadie@witchery.services> | 2020-01-28 16:55:06 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-01-28 18:56:46 +0000 |
commit | 64df216836aa1027aa7d6b7242264a982dc540bc (patch) | |
tree | 5288dff4477d760423ca3c3c4f49e344770e5898 | |
parent | c2a3321540c2178b2752dc102b2f57c8501f468d (diff) |
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.
-rw-r--r-- | include/message.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/message.h b/include/message.h index 2e3cd9bb1..322e159d1 100644 --- a/include/message.h +++ b/include/message.h @@ -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; } }; |