X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/44719c473b9da3a5f8d65fb13052929a942ac3ad..755c41bf1ebddab912a4bfbe460041fec28aea07:/src/common/extended.c diff --git a/src/common/extended.c b/src/common/extended.c index 42225997a2..c691e6b1a5 100644 --- a/src/common/extended.c +++ b/src/common/extended.c @@ -1,3 +1,6 @@ +#if !defined(__VISAGECPP__) +# pragma warning(disable:4001) /* non standard extension used: single line comment */ +#endif #include "wx/setup.h" #include @@ -82,9 +85,10 @@ void ConvertToIeeeExtended(double num, unsigned char *bytes) } } - /* disable the warning about 'possible loss of data' */ + /* disable the warning about 'possible loss of data' & 'conversion between diff types' */ #ifdef _MSC_VER #pragma warning(disable: 4244) + #pragma warning(disable: 4135) #endif /* Visual C++ */ bytes[0] = (expon >> 8) & 0xff; @@ -100,6 +104,7 @@ void ConvertToIeeeExtended(double num, unsigned char *bytes) #ifdef _MSC_VER #pragma warning(default: 4244) + #pragma warning(default: 4135) #endif /* Visual C++ */ }