From 64df216836aa1027aa7d6b7242264a982dc540bc Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 28 Jan 2020 16:55:06 +0000 Subject: [PATCH] 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. --- include/message.h | 5 +++++ 1 file changed, 5 insertions(+) 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(); } + + // We should never reach this point during a normal execution but + // handle it just in case. + static const std::string target = "*"; + return target; } };