]> git.proxmox.com Git - mirror_qemu.git/commitdiff
libdecnumber: Eliminate Unused Variable in decSetSubnormal
authorTom Musta <tommusta@gmail.com>
Mon, 21 Apr 2014 20:54:51 +0000 (15:54 -0500)
committerAlexander Graf <agraf@suse.de>
Mon, 16 Jun 2014 11:24:28 +0000 (13:24 +0200)
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 <tommusta@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
libdecnumber/decNumber.c

index 1bfc08173e06de741ef056a922998c0c9684d071..f6b6eb113ad7ed79a840952c97fb59a64b867055 100644 (file)
@@ -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 */