diff options
author | Cristian Cadar <c.cadar@imperial.ac.uk> | 2017-10-04 13:32:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-04 13:32:56 +0100 |
commit | afb9326f7437c9eeaa2617c589312263bc7a14ba (patch) | |
tree | 52f7aaeaba5efb3f7825536a7222863bc60b2fb0 | |
parent | 9dd7fb2e56338f891da916c68b8b69c7c2a91ed8 (diff) | |
parent | b7f50f1db9d51483bd937b81484c14321c0c7d22 (diff) | |
download | klee-afb9326f7437c9eeaa2617c589312263bc7a14ba.tar.gz |
Merge pull request #761 from ccadar/misc
Silenced some warnings about unused variables when assertions are dis…
-rw-r--r-- | lib/Core/ImpliedValue.cpp | 2 | ||||
-rw-r--r-- | lib/Core/Searcher.cpp | 2 | ||||
-rw-r--r-- | lib/Module/ModuleUtil.cpp | 1 | ||||
-rw-r--r-- | lib/Support/CompressionStream.cpp | 2 |
4 files changed, 5 insertions, 2 deletions
diff --git a/lib/Core/ImpliedValue.cpp b/lib/Core/ImpliedValue.cpp index c8342df1..90000683 100644 --- a/lib/Core/ImpliedValue.cpp +++ b/lib/Core/ImpliedValue.cpp @@ -231,7 +231,7 @@ void ImpliedValue::checkForImpliedValues(Solver *S, ref<Expr> e, ie = reads.end(); i != ie; ++i) { ref<ReadExpr> var = *i; ref<ConstantExpr> possible; - bool success = S->getValue(Query(assume, var), possible); + bool success = S->getValue(Query(assume, var), possible); (void) success; assert(success && "FIXME: Unhandled solver failure"); std::map<ref<ReadExpr>, ref<ConstantExpr> >::iterator it = found.find(var); bool res; diff --git a/lib/Core/Searcher.cpp b/lib/Core/Searcher.cpp index b9f22538..fc61ab98 100644 --- a/lib/Core/Searcher.cpp +++ b/lib/Core/Searcher.cpp @@ -84,6 +84,7 @@ void DFSSearcher::update(ExecutionState *current, } } + (void) ok; assert(ok && "invalid state removed"); } } @@ -129,6 +130,7 @@ void BFSSearcher::update(ExecutionState *current, } } + (void) ok; assert(ok && "invalid state removed"); } } diff --git a/lib/Module/ModuleUtil.cpp b/lib/Module/ModuleUtil.cpp index a8a87b2c..a86adc98 100644 --- a/lib/Module/ModuleUtil.cpp +++ b/lib/Module/ModuleUtil.cpp @@ -522,6 +522,7 @@ Function *klee::getDirectCallTarget(CallSite cs, bool moduleIsFullyLinked) { // NOTE: This assert may fire, it isn't necessarily a problem and // can be disabled, I just wanted to know when and if it happened. + (void) viaConstantExpr; assert((!viaConstantExpr) && "FIXME: Unresolved direct target for a constant expression"); return NULL; diff --git a/lib/Support/CompressionStream.cpp b/lib/Support/CompressionStream.cpp index 94f0bd18..2e6df113 100644 --- a/lib/Support/CompressionStream.cpp +++ b/lib/Support/CompressionStream.cpp @@ -91,7 +91,7 @@ void compressed_fd_ostream::write_impl(const char *Ptr, size_t Size) { // Check if there is still data to compress while (strm.avail_in != 0) { // compress data - int res = deflate(&strm, Z_NO_FLUSH); + int res = deflate(&strm, Z_NO_FLUSH); (void) res; assert(res == Z_OK); writeFullCompressedData(); } |