[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [RFC 06/12] target-ppc: Eliminate Unused Variable in decSetSu
From: |
Tom Musta |
Subject: |
[Qemu-ppc] [RFC 06/12] target-ppc: Eliminate Unused Variable in decSetSubnormal |
Date: |
Thu, 13 Mar 2014 10:13:02 -0500 |
This patch eliminates an unused variable in the decSetSubnormal
routine. The variable dnexp is declared and eventually set but
never used. This triggers a unused-but-set-variable warning, which
can fail QEMU compilation.
Signed-off-by: Tom Musta <address@hidden>
---
libdecnumber/decNumber.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/libdecnumber/decNumber.c b/libdecnumber/decNumber.c
index c0429e5..f60837b 100644
--- a/libdecnumber/decNumber.c
+++ b/libdecnumber/decNumber.c
@@ -7398,7 +7398,6 @@ static void decSetMaxValue(decNumber *dn, decContext
*set) {
/* ------------------------------------------------------------------ */
static void decSetSubnormal(decNumber *dn, decContext *set, Int *residue,
uInt *status) {
- Int dnexp; /* saves original exponent */
decContext workset; /* work */
Int etiny, adjust; /* .. */
@@ -7443,7 +7442,6 @@ static void decSetSubnormal(decNumber *dn, decContext
*set, Int *residue,
/* adjust>0, so need to rescale the result so exponent becomes Etiny */
/* [this code is similar to that in rescale] */
- dnexp=dn->exponent; /* save exponent */
workset=*set; /* clone rounding, etc. */
workset.digits=dn->digits-adjust; /* set requested length */
workset.emin-=adjust; /* and adjust emin to match */
--
1.7.1
- [Qemu-ppc] [RFC 00/12] target-ppc: Decimal Floating Point, Tom Musta, 2014/03/13
- [Qemu-ppc] [RFC 03/12] target-ppc: Modify dconfig.h to Integrate with QEMU, Tom Musta, 2014/03/13
- [Qemu-ppc] [RFC 02/12] target-ppc: Prepare libdecnumber for QEMU include structure, Tom Musta, 2014/03/13
- [Qemu-ppc] [RFC 11/12] target-ppc: Introduce DFP Post Processor Utilities, Tom Musta, 2014/03/13
- [Qemu-ppc] [RFC 12/12] target-ppc: Introduce DFP Add, Tom Musta, 2014/03/13
- [Qemu-ppc] [RFC 07/12] target-ppc: Enable Building of libdecnumber, Tom Musta, 2014/03/13
- [Qemu-ppc] [RFC 06/12] target-ppc: Eliminate Unused Variable in decSetSubnormal,
Tom Musta <=
- [Qemu-ppc] [RFC 05/12] target-ppc: Eliminate redundant declarations, Tom Musta, 2014/03/13
- [Qemu-ppc] [RFC 10/12] target-ppc: Introduce DFP Helper Utilities, Tom Musta, 2014/03/13
- [Qemu-ppc] [RFC 04/12] target-ppc: Change gstdint.h to stdint.h, Tom Musta, 2014/03/13
- [Qemu-ppc] [RFC 08/12] target-ppc: Define FPR Pointer Type for Helpers, Tom Musta, 2014/03/13
- [Qemu-ppc] [RFC 09/12] target-ppc: Introduce Translation Macros for DFP Arithmetic Forms, Tom Musta, 2014/03/13
- [Qemu-ppc] [RFC 01/12] target-ppc: Introduce libdecnumber Code, Tom Musta, 2014/03/13