Skip to content

Commit

Permalink
Disabled spurious Visual Studio warnings in the uClibc math code
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Nov 22, 2017
1 parent 1c0c903 commit ac4b491
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/libm/e_log.c
Expand Up @@ -9,6 +9,11 @@
* ====================================================
*/

#if defined(_MSC_VER) /* Handle Microsoft VC++ compiler specifics. */
/* C4723: potential divide by zero. */
#pragma warning ( disable : 4723 )
#endif

/* __ieee754_log(x)
* Return the logrithm of x
*
Expand Down
5 changes: 5 additions & 0 deletions src/libm/e_pow.c
Expand Up @@ -58,6 +58,11 @@
#include "math_libm.h"
#include "math_private.h"

#if defined(_MSC_VER) /* Handle Microsoft VC++ compiler specifics. */
/* C4756: overflow in constant arithmetic */
#pragma warning ( disable : 4756 )
#endif

static const double
bp[] = {1.0, 1.5,},
dp_h[] = { 0.0, 5.84962487220764160156e-01,}, /* 0x3FE2B803, 0x40000000 */
Expand Down

0 comments on commit ac4b491

Please sign in to comment.