diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-06-20 20:11:20 (GMT) |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-06-20 20:11:20 (GMT) |
commit | c23f89bc7651609865164c95ce3655ebd369c11e (patch) | |
tree | 6c260035991409f657306477cd854a017a385802 | |
parent | cd1f1cb544267911829ac777214474f5ce3491f1 (diff) | |
download | CMake-c23f89bc7651609865164c95ce3655ebd369c11e.zip CMake-c23f89bc7651609865164c95ce3655ebd369c11e.tar.gz CMake-c23f89bc7651609865164c95ce3655ebd369c11e.tar.bz2 |
cmOutputConverter::Convert: make precondition explicit
-rw-r--r-- | Source/cmOutputConverter.cxx | 6 |
1 files 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) { |