From ba7f7526fe494c1a0ba5209da6ffd2422cffccfa Mon Sep 17 00:00:00 2001 From: Raul Felipe Pimenta Lopes Date: Mon, 24 Sep 2018 21:53:32 -0300 Subject: [PATCH] main.cpp: return HRESULT hr in RemoveDist Return the result of calling WslUnregisterDistribution in RemoveDist. This will fix the compiler warning about control reaching end of non-void function. --- main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/main.cpp b/main.cpp index 6c2c13e..2d40f62 100644 --- a/main.cpp +++ b/main.cpp @@ -310,6 +310,7 @@ HRESULT RemoveDist(wchar_t *TargetName) { wprintf(L"Unregistering...\n"); HRESULT hr = WslUnregisterDistribution(TargetName); + return hr; } else {