diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-06-20 22:11:20 +0200 |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-06-20 22:11:20 +0200 |
commit | c23f89bc7651609865164c95ce3655ebd369c11e (patch) | |
tree | 6c260035991409f657306477cd854a017a385802 | |
parent | cd1f1cb544267911829ac777214474f5ce3491f1 (diff) | |
download | cmake-c23f89bc7651609865164c95ce3655ebd369c11e.tar.gz |
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 da43a119ba..a23478b4ba 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) { |