From f8bee7e57187ae9bd55a95bcac4fa07e41ff4dfb Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 21 Mar 2018 11:00:41 +0300 Subject: Fix 'control reaches end of non-void function' warning --- libbpkg/manifest.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libbpkg/manifest.cxx b/libbpkg/manifest.cxx index adb4ffc..951c6a6 100644 --- a/libbpkg/manifest.cxx +++ b/libbpkg/manifest.cxx @@ -249,6 +249,9 @@ namespace bpkg } bad_arg (string (what) + " should be 2-byte unsigned integer"); + + assert (false); // Can't be here. + return 0; }; enum class mode {epoch, upstream, release, revision}; -- cgit v1.1