[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [V2 PATCH 07/37] libdecnumber: Eliminate Unused Variable in d
From: |
Tom Musta |
Subject: |
[Qemu-ppc] [V2 PATCH 07/37] libdecnumber: Eliminate Unused Variable in decSetSubnormal |
Date: |
Mon, 21 Apr 2014 15:54:51 -0500 |
Eliminate an unused variable in the decSetSubnormal routine. The
variable dnexp is declared and eventually set but never used, and
thus may trigger an unused-but-set-variable warning.
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 1bfc081..f6b6eb1 100644
--- a/libdecnumber/decNumber.c
+++ b/libdecnumber/decNumber.c
@@ -7403,7 +7403,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; /* .. */
@@ -7448,7 +7447,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] [V2 PATCH 00/37] target-ppc: Decimal Floating Point, Tom Musta, 2014/04/21
- [Qemu-ppc] [V2 PATCH 02/37] libdecnumber: Eliminate #include *Symbols.h, Tom Musta, 2014/04/21
- [Qemu-ppc] [V2 PATCH 06/37] libdecnumber: Eliminate redundant declarations, Tom Musta, 2014/04/21
- [Qemu-ppc] [V2 PATCH 05/37] libdecnumber: Change gstdint.h to stdint.h, Tom Musta, 2014/04/21
- [Qemu-ppc] [V2 PATCH 03/37] libdecnumber: Prepare libdecnumber for QEMU include structure, Tom Musta, 2014/04/21
- [Qemu-ppc] [V2 PATCH 07/37] libdecnumber: Eliminate Unused Variable in decSetSubnormal,
Tom Musta <=
- [Qemu-ppc] [V2 PATCH 15/37] target-ppc: Introduce DFP Helper Utilities, Tom Musta, 2014/04/21
- [Qemu-ppc] [V2 PATCH 04/37] libdecnumber: Modify dconfig.h to Integrate with QEMU, Tom Musta, 2014/04/21
- [Qemu-ppc] [V2 PATCH 08/37] target-ppc: Enable Building of libdecnumber, Tom Musta, 2014/04/21
- [Qemu-ppc] [V2 PATCH 09/37] libdecnumber: Introduce decNumberFrom[U]Int64, Tom Musta, 2014/04/21
- [Qemu-ppc] [V2 PATCH 10/37] libdecnumber: Introduce decNumberIntegralToInt64, Tom Musta, 2014/04/21
- [Qemu-ppc] [V2 PATCH 12/37] target-ppc: Define FPR Pointer Type for Helpers, Tom Musta, 2014/04/21
- [Qemu-ppc] [V2 PATCH 11/37] libdecnumber: Fix decNumberSetBCD, Tom Musta, 2014/04/21
- [Qemu-ppc] [V2 PATCH 13/37] target-ppc: Introduce Generator Macros for DFP Arithmetic Forms, Tom Musta, 2014/04/21
- [Qemu-ppc] [V2 PATCH 14/37] target-ppc: Introduce Decoder Macros for DFP, Tom Musta, 2014/04/21
- [Qemu-ppc] [V2 PATCH 16/37] target-ppc: Introduce DFP Post Processor Utilities, Tom Musta, 2014/04/21