diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2014-01-17 09:33:16 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2014-01-17 09:33:16 +0000 |
commit | ee38269eb1f3cabaebf122ad7e0586faf53f0e91 (patch) | |
tree | 3d2a61532410ccb0d81640a75ad4c24bc4788fa5 /src/nrandom.c | |
parent | b79b39da0a7e11491b0b48453eb01784cf4aa3da (diff) | |
download | mpfr-ee38269eb1f3cabaebf122ad7e0586faf53f0e91.tar.gz |
Avoid an empty translation unit (see ISO C99, 6.9). Some errors could
be triggered with "gcc -std=c99 -pedantic-errors".
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8756 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/nrandom.c')
-rw-r--r-- | src/nrandom.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nrandom.c b/src/nrandom.c index 20d66599c..f4b8a0708 100644 --- a/src/nrandom.c +++ b/src/nrandom.c @@ -180,4 +180,10 @@ mpfr_nrandom (mpfr_t z, gmp_randstate_t r, mpfr_rnd_t rnd) mpfr_random_deviate_clear (x); return inex; } + +#else + +/* Avoid an empty translation unit (see ISO C99, 6.9) */ +typedef int foo; + #endif |