Disabled spurious Visual Studio warnings in the uClibc math code
authorSam Lantinga <slouken@libsdl.org>
Tue, 21 Nov 2017 21:51:33 -0800
changeset 117118a982ed61896
parent 11710 53049fd16008
child 11712 b94292eebb5c
Disabled spurious Visual Studio warnings in the uClibc math code
src/libm/e_log.c
src/libm/e_pow.c
     1.1 --- a/src/libm/e_log.c	Tue Nov 21 21:30:47 2017 -0800
     1.2 +++ b/src/libm/e_log.c	Tue Nov 21 21:51:33 2017 -0800
     1.3 @@ -9,6 +9,11 @@
     1.4   * ====================================================
     1.5   */
     1.6  
     1.7 +#if defined(_MSC_VER)           /* Handle Microsoft VC++ compiler specifics. */
     1.8 +/* C4723: potential divide by zero. */
     1.9 +#pragma warning ( disable : 4723 )
    1.10 +#endif
    1.11 +
    1.12  /* __ieee754_log(x)
    1.13   * Return the logrithm of x
    1.14   *
     2.1 --- a/src/libm/e_pow.c	Tue Nov 21 21:30:47 2017 -0800
     2.2 +++ b/src/libm/e_pow.c	Tue Nov 21 21:51:33 2017 -0800
     2.3 @@ -58,6 +58,11 @@
     2.4  #include "math_libm.h"
     2.5  #include "math_private.h"
     2.6  
     2.7 +#if defined(_MSC_VER)           /* Handle Microsoft VC++ compiler specifics. */
     2.8 +/* C4756: overflow in constant arithmetic */
     2.9 +#pragma warning ( disable : 4756 )
    2.10 +#endif
    2.11 +
    2.12  static const double
    2.13  bp[] = {1.0, 1.5,},
    2.14  dp_h[] = { 0.0, 5.84962487220764160156e-01,}, /* 0x3FE2B803, 0x40000000 */