summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-01-28 16:55:06 +0000
committerSadie Powell <sadie@witchery.services>2020-01-28 18:56:46 +0000
commit64df216836aa1027aa7d6b7242264a982dc540bc (patch)
tree5288dff4477d760423ca3c3c4f49e344770e5898 /include
parentc2a3321540c2178b2752dc102b2f57c8501f468d (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.
Diffstat (limited to 'include')
-rw-r--r--include/message.h5
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;
}
};