35c8a1
From aed9d68b2a7e6622a7d0037d25d69d486a33825c Mon Sep 17 00:00:00 2001
35c8a1
From: Marek Polacek <polacek@redhat.com>
35c8a1
Date: Thu, 8 Oct 2020 16:27:55 -0400
35c8a1
Subject: [PATCH] Fix reading uninitialized value.  Remove dead assignment.
35c8a1
35c8a1
	* src/atan.c (mpc_atan): Initialize OK to zero.
35c8a1
	* src/pow.c (mpc_pow): Remove dead assignment.
35c8a1
---
35c8a1
 src/atan.c | 2 +-
35c8a1
 src/pow.c  | 1 -
35c8a1
 2 files changed, 1 insertion(+), 2 deletions(-)
35c8a1
35c8a1
diff --git a/src/atan.c b/src/atan.c
35c8a1
index cc1922b..4e71f6f 100644
35c8a1
--- a/src/atan.c
35c8a1
+++ b/src/atan.c
35c8a1
@@ -143,7 +143,7 @@ mpc_atan (mpc_ptr rop, mpc_srcptr op, mpc_rnd_t rnd)
35c8a1
           mpfr_rnd_t rnd_im, rnd_away;
35c8a1
           mpfr_t y, z;
35c8a1
           mpfr_prec_t p, p_im;
35c8a1
-          int ok;
35c8a1
+          int ok = 0;
35c8a1
 
35c8a1
           rnd_im = MPC_RND_IM (rnd);
35c8a1
           mpfr_init (y);
35c8a1
diff --git a/src/pow.c b/src/pow.c
35c8a1
index 4fc90ae..0fc6932 100644
35c8a1
--- a/src/pow.c
35c8a1
+++ b/src/pow.c
35c8a1
@@ -685,7 +685,6 @@ mpc_pow (mpc_ptr z, mpc_srcptr x, mpc_sr
35c8a1
          int inex_re, inex_im;
35c8a1
          /* under- and overflow flags are set by mpc_exp */
35c8a1
          mpc_set (z, u, MPC_RNDNN);
35c8a1
-         ret = ret_exp;
35c8a1
          inex_re = MPC_INEX_RE(ret_exp);
35c8a1
          inex_im = MPC_INEX_IM(ret_exp);
35c8a1
          if (mpfr_inf_p (mpc_realref (z)))