diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-12-05 08:47:25 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-12-05 08:47:25 +0000 |
commit | f5cf3f16428610e9c67dc905412962c3b0b7f117 (patch) | |
tree | 121300bc725dd791a218879508aac60a95d5d97d /tests | |
parent | 36e314143dbb612efd079e50cb252f8e7d55c4ab (diff) | |
download | mpfr-f5cf3f16428610e9c67dc905412962c3b0b7f117.tar.gz |
Disable the "deprecated" attribute of deprecated functions *only* for
the tests of these functions, to avoid the corresponding warnings.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11896 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tgrandom.c | 1 | ||||
-rw-r--r-- | tests/tpow.c | 1 | ||||
-rw-r--r-- | tests/troot.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/tests/tgrandom.c b/tests/tgrandom.c index 1d3967251..74ef6486c 100644 --- a/tests/tgrandom.c +++ b/tests/tgrandom.c @@ -20,6 +20,7 @@ along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ +#define _MPFR_NO_DEPRECATED_GRANDOM #include "mpfr-test.h" static void diff --git a/tests/tpow.c b/tests/tpow.c index d5e968b3a..c96060433 100644 --- a/tests/tpow.c +++ b/tests/tpow.c @@ -23,6 +23,7 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., #include <float.h> #include <math.h> +#define _MPFR_NO_DEPRECATED_ROOT #include "mpfr-test.h" #ifdef CHECK_EXTERNAL diff --git a/tests/troot.c b/tests/troot.c index 9ec0e34dd..1cc1927bf 100644 --- a/tests/troot.c +++ b/tests/troot.c @@ -25,6 +25,7 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., #else # define TF_IS_MPFR_ROOT 1 # define TF mpfr_root +# define _MPFR_NO_DEPRECATED_ROOT #endif #include "mpfr-test.h" |