diff options
author | Duncan Sands <baldrick@free.fr> | 2011-08-12 14:54:45 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2011-08-12 14:54:45 +0000 |
commit | 1f6a329f79b3568d379142f921f59c4143ddaa14 (patch) | |
tree | 48a398f7238e67041a4f73e6f65440be845523cb /lib/Support | |
parent | 3c757ef2ef8294ea34378804d7c4d71053588b8c (diff) | |
download | external_llvm-1f6a329f79b3568d379142f921f59c4143ddaa14.zip external_llvm-1f6a329f79b3568d379142f921f59c4143ddaa14.tar.gz external_llvm-1f6a329f79b3568d379142f921f59c4143ddaa14.tar.bz2 |
Silence a bunch (but not all) "variable written but not read" warnings
when building with assertions disabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137460 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/APFloat.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Support/APFloat.cpp b/lib/Support/APFloat.cpp index b37e011..1437fd6 100644 --- a/lib/Support/APFloat.cpp +++ b/lib/Support/APFloat.cpp @@ -832,6 +832,7 @@ APFloat::incrementSignificand() /* Our callers should never cause us to overflow. */ assert(carry == 0); + (void)carry; } /* Add the significand of the RHS. Returns the carry flag. */ @@ -926,6 +927,7 @@ APFloat::multiplySignificand(const APFloat &rhs, const APFloat *addend) APFloat extendedAddend(*addend); status = extendedAddend.convert(extendedSemantics, rmTowardZero, &ignored); assert(status == opOK); + (void)status; lost_fraction = addOrSubtractSignificand(extendedAddend, false); /* Restore our state. */ @@ -1389,6 +1391,7 @@ APFloat::addOrSubtractSignificand(const APFloat &rhs, bool subtract) /* The code above is intended to ensure that no borrow is necessary. */ assert(!carry); + (void)carry; } else { if (bits > 0) { APFloat temp_rhs(rhs); @@ -1402,6 +1405,7 @@ APFloat::addOrSubtractSignificand(const APFloat &rhs, bool subtract) /* We have a guard bit; generating a carry cannot happen. */ assert(!carry); + (void)carry; } return lost_fraction; |