summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2012-06-28 12:49:09 +0000
committerenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2012-06-28 12:49:09 +0000
commit3d4935badcf58c5ad21e3d1d0ada3a6421a0ee9a (patch)
treed7fcc637b243f55c1a61b350609254dfa0879aa8
parent120d32b0837cde48048c006a0b53a923305c3ab6 (diff)
downloadmpc-3d4935badcf58c5ad21e3d1d0ada3a6421a0ee9a.tar.gz
configure.ac: reenable warning flags
atan.c, mpc-tests.h; treat warnings git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1204 211d60ee-9f03-0410-a15a-8952a2c7a4e4
-rw-r--r--configure.ac5
-rw-r--r--src/atan.c1
-rw-r--r--tests/mpc-tests.h1
3 files changed, 4 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 907a168..374ba91 100644
--- a/configure.ac
+++ b/configure.ac
@@ -123,11 +123,12 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
AC_MSG_ERROR([gmp.h cannot be found or is unusable.])
])
-# Check if compiler accepts warning flags and add them to CFLAGS
+# Check (only in development versions) if the compiler accepts warning
+# flags and add them to CFLAGS
# Note: don't do this if the user defined CFLAGS, since adding new flags
# might override the user's settings, see
# http://lists.gforge.inria.fr/pipermail/mpc-discuss/2012-May/001115.html
-if test -z "$CFLAGS"; then
+if test -z "$USER_CFLAGS"; then
MPC_C_CHECK_WARNINGCFLAGS
fi
diff --git a/src/atan.c b/src/atan.c
index c47c4ef..760f5d8 100644
--- a/src/atan.c
+++ b/src/atan.c
@@ -196,7 +196,6 @@ mpc_atan (mpc_ptr rop, mpc_srcptr op, mpc_rnd_t rnd)
mpfr_t minus_op_re;
mpfr_exp_t op_re_exp, op_im_exp;
mpfr_rnd_t rnd1, rnd2;
- int loops = 0;
mpfr_inits2 (MPFR_PREC_MIN, a, b, x, y, (mpfr_ptr) 0);
diff --git a/tests/mpc-tests.h b/tests/mpc-tests.h
index bf3fec9..74e5fa4 100644
--- a/tests/mpc-tests.h
+++ b/tests/mpc-tests.h
@@ -45,6 +45,7 @@ along with this program. If not, see http://www.gnu.org/licenses/ .
__MPC_DECLSPEC int mpc_mul_naive (mpc_ptr, mpc_srcptr, mpc_srcptr, mpc_rnd_t);
__MPC_DECLSPEC int mpc_mul_karatsuba (mpc_ptr, mpc_srcptr, mpc_srcptr, mpc_rnd_t);
+__MPC_DECLSPEC int mpc_fma_naive (mpc_ptr, mpc_srcptr, mpc_srcptr, mpc_srcptr, mpc_rnd_t);
/* end pieces copied from mpc-impl.h */
#define MPC_OUT(x) \