diff options
author | nijtmans <nijtmans@noemail.net> | 2010-12-03 09:19:39 (GMT) |
---|---|---|
committer | nijtmans <nijtmans@noemail.net> | 2010-12-03 09:19:39 (GMT) |
commit | aa8b4bf0b0bba3e1cd531dc69cb6bce06a6eae95 (patch) | |
tree | 84f06ceb25a53b5aff218927cade3aa04bcfc284 /generic/tclStrToD.c | |
parent | e509bcd88a54480d43946e51222da7ced0e6c20f (diff) | |
download | tcl-aa8b4bf0b0bba3e1cd531dc69cb6bce06a6eae95.zip tcl-aa8b4bf0b0bba3e1cd531dc69cb6bce06a6eae95.tar.gz tcl-aa8b4bf0b0bba3e1cd531dc69cb6bce06a6eae95.tar.bz2 |
silence gcc warning when using -Wwrite-strings
silence gcc warning for non-IEEE platforms
[Patch #3116490] cross-compile Tcl mingw32 on unix.
This makes it possible to cross-compile Tcl/Tk for Windows (either 32-bit or 64-bit) out-of-the-box on UNIX, using mingw-w64 build tools.
FossilOrigin-Name: d1cc6495565ed231191402b44392ff5e35471369
Diffstat (limited to 'generic/tclStrToD.c')
-rwxr-xr-x | generic/tclStrToD.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/generic/tclStrToD.c b/generic/tclStrToD.c index 8626962..70de0e0 100755 --- a/generic/tclStrToD.c +++ b/generic/tclStrToD.c @@ -14,7 +14,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclStrToD.c,v 1.50 2010/12/01 16:28:00 kennykb Exp $ + * RCS: @(#) $Id: tclStrToD.c,v 1.51 2010/12/03 09:19:40 nijtmans Exp $ * *---------------------------------------------------------------------- */ @@ -285,7 +285,9 @@ static double MakeHighPrecisionDouble(int signum, static double MakeLowPrecisionDouble(int signum, Tcl_WideUInt significand, int nSigDigs, int exponent); +#ifdef IEEE_FLOATING_POINT static double MakeNaN(int signum, Tcl_WideUInt tag); +#endif static double RefineApproximation(double approx, mp_int *exactSignificand, int exponent); static void MulPow5(mp_int*, unsigned, mp_int*); @@ -346,7 +348,9 @@ static double BignumToBiasedFrExp(const mp_int *big, int *machexp); static double Pow10TimesFrExp(int exponent, double fraction, int *machexp); static double SafeLdExp(double fraction, int exponent); +#ifdef IEEE_FLOATING_POINT static Tcl_WideUInt Nokia770Twiddle(Tcl_WideUInt w); +#endif /* *---------------------------------------------------------------------- @@ -4921,13 +4925,14 @@ TclFormatNaN( * *---------------------------------------------------------------------- */ - +#ifdef IEEE_FLOATING_POINT static Tcl_WideUInt Nokia770Twiddle( Tcl_WideUInt w) /* Number to transpose */ { return (((w >> 32) & 0xffffffff) | (w << 32)); } +#endif /* *---------------------------------------------------------------------- |