From 7d41d267a3da038e454930971f14f632b5984e12 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Mon, 12 Aug 2019 13:18:21 -0700 Subject: [PATCH] silencing warnings for code paths that will never be hit --- node/Identity.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node/Identity.cpp b/node/Identity.cpp index 83800384e..f54d90e67 100644 --- a/node/Identity.cpp +++ b/node/Identity.cpp @@ -243,7 +243,7 @@ char *Identity::toString(bool includePrivate,char buf[ZT_IDENTITY_STRING_BUFFER_ } *p = (char)0; return buf; - } + } break; case P384: { char *p = buf; Utils::hex10(_address.toInt(),p); @@ -262,6 +262,7 @@ char *Identity::toString(bool includePrivate,char buf[ZT_IDENTITY_STRING_BUFFER_ return buf; } break; } + return nullptr; } bool Identity::fromString(const char *str)