From c23f89bc7651609865164c95ce3655ebd369c11e Mon Sep 17 00:00:00 2001 From: Daniel Pfeifer Date: Mon, 20 Jun 2016 22:11:20 +0200 Subject: cmOutputConverter::Convert: make precondition explicit --- Source/cmOutputConverter.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/cmOutputConverter.cxx b/Source/cmOutputConverter.cxx index da43a11..a23478b 100644 --- a/Source/cmOutputConverter.cxx +++ b/Source/cmOutputConverter.cxx @@ -161,9 +161,11 @@ std::string cmOutputConverter::Convert(RelativeRoot remote, OutputFormat output, bool optional) const { - const char* remotePath = this->GetRelativeRootPath(remote); - // The relative root must have a path (i.e. not FULL or NONE) + assert(remote != FULL); + assert(remote != NONE); + + const char* remotePath = this->GetRelativeRootPath(remote); assert(remotePath != 0); if (!local.empty() && !optional) { -- cgit v0.12