From f8da0cef2787c15c7e83818d55c499ee965f9d85 Mon Sep 17 00:00:00 2001 From: vlefevre Date: Fri, 3 Jan 2014 20:57:13 +0000 Subject: Fixed warnings from GCC's -Wold-style-declaration option: MPFR_THREAD_ATTR must be at beginning of declaration. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8725 280ebfd0-de03-0410-8827-d642c229c3f4 --- src/const_log2.c | 2 +- src/const_pi.c | 2 +- src/exceptions.c | 6 +++--- src/mpfr-impl.h | 2 +- src/set_dfl_prec.c | 2 +- src/set_rnd.c | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/const_log2.c b/src/const_log2.c index 4ecfa57cd..8be8b60f4 100644 --- a/src/const_log2.c +++ b/src/const_log2.c @@ -29,7 +29,7 @@ MPFR_DECL_INIT_CACHE(__gmpfr_cache_const_log2, mpfr_const_log2_internal); #else MPFR_DECL_INIT_CACHE(__gmpfr_normal_log2, mpfr_const_log2_internal); MPFR_DECL_INIT_CACHE(__gmpfr_logging_log2, mpfr_const_log2_internal); -mpfr_cache_ptr MPFR_THREAD_ATTR __gmpfr_cache_const_log2 = __gmpfr_normal_log2; +MPFR_THREAD_ATTR mpfr_cache_ptr __gmpfr_cache_const_log2 = __gmpfr_normal_log2; #endif /* Set User interface */ diff --git a/src/const_pi.c b/src/const_pi.c index ad6f92184..2bb411af2 100644 --- a/src/const_pi.c +++ b/src/const_pi.c @@ -28,7 +28,7 @@ MPFR_DECL_INIT_CACHE(__gmpfr_cache_const_pi, mpfr_const_pi_internal); #else MPFR_DECL_INIT_CACHE(__gmpfr_normal_pi, mpfr_const_pi_internal); MPFR_DECL_INIT_CACHE(__gmpfr_logging_pi, mpfr_const_pi_internal); -mpfr_cache_ptr MPFR_THREAD_ATTR __gmpfr_cache_const_pi = __gmpfr_normal_pi; +MPFR_THREAD_ATTR mpfr_cache_ptr __gmpfr_cache_const_pi = __gmpfr_normal_pi; #endif /* Set User Interface */ diff --git a/src/exceptions.c b/src/exceptions.c index 78c03401a..b5ce1f7c5 100644 --- a/src/exceptions.c +++ b/src/exceptions.c @@ -22,10 +22,10 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., #include "mpfr-impl.h" -mpfr_flags_t MPFR_THREAD_ATTR __gmpfr_flags = 0; +MPFR_THREAD_ATTR mpfr_flags_t __gmpfr_flags = 0; -mpfr_exp_t MPFR_THREAD_ATTR __gmpfr_emin = MPFR_EMIN_DEFAULT; -mpfr_exp_t MPFR_THREAD_ATTR __gmpfr_emax = MPFR_EMAX_DEFAULT; +MPFR_THREAD_ATTR mpfr_exp_t __gmpfr_emin = MPFR_EMIN_DEFAULT; +MPFR_THREAD_ATTR mpfr_exp_t __gmpfr_emax = MPFR_EMAX_DEFAULT; #undef mpfr_get_emin diff --git a/src/mpfr-impl.h b/src/mpfr-impl.h index a24e0f666..d3aced138 100644 --- a/src/mpfr-impl.h +++ b/src/mpfr-impl.h @@ -1047,7 +1047,7 @@ typedef union { mp_size_t s; mp_limb_t l; } mpfr_size_limb_t; #define mpfr_const_catalan(_d,_r) mpfr_cache(_d,__gmpfr_cache_const_catalan,_r) #define MPFR_DECL_INIT_CACHE(_cache,_func) \ - mpfr_cache_t MPFR_THREAD_ATTR _cache = \ + MPFR_THREAD_ATTR mpfr_cache_t _cache = \ {{{{0,MPFR_SIGN_POS,0,(mp_limb_t*)0}},0,_func}} diff --git a/src/set_dfl_prec.c b/src/set_dfl_prec.c index 20122c3f2..0b90d85a6 100644 --- a/src/set_dfl_prec.c +++ b/src/set_dfl_prec.c @@ -23,7 +23,7 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., #include "mpfr-impl.h" /* default is IEEE double precision, i.e. 53 bits */ -mpfr_prec_t MPFR_THREAD_ATTR __gmpfr_default_fp_bit_precision \ +MPFR_THREAD_ATTR mpfr_prec_t __gmpfr_default_fp_bit_precision \ = IEEE_DBL_MANT_DIG; void diff --git a/src/set_rnd.c b/src/set_rnd.c index dde513d7a..1031dd64a 100644 --- a/src/set_rnd.c +++ b/src/set_rnd.c @@ -23,7 +23,7 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., #include "mpfr-impl.h" -mpfr_rnd_t MPFR_THREAD_ATTR __gmpfr_default_rounding_mode = MPFR_RNDN; +MPFR_THREAD_ATTR mpfr_rnd_t __gmpfr_default_rounding_mode = MPFR_RNDN; void mpfr_set_default_rounding_mode (mpfr_rnd_t rnd_mode) -- cgit v1.2.1