trunk/src/osd/windows/vconv.c
| r243341 | r243342 | |
| 78 | 78 | // warning C4146: unary minus operator applied to unsigned type, result still unsigned |
| 79 | 79 | // warning C4150: deletion of pointer to incomplete type 'xxx'; no destructor called |
| 80 | 80 | // warning C4189: 'xxx' : local variable is initialized but not referenced |
| 81 | // warning C4191: 'type cast' : unsafe conversion from 'xxx' to 'xxx' // 64-bit only |
| 81 | 82 | // warning C4201: nonstandard extension used : nameless struct/union |
| 82 | 83 | // warning C4242: 'x' : conversion from 'xxx' to 'xxx', possible loss of data |
| 83 | 84 | // warning C4244: 'argument' : conversion from 'xxx' to 'xxx', possible loss of data |
| 84 | 85 | // warning C4250: 'xxx' : inherits 'xxx' via dominance |
| 85 | 86 | // warning C4255: 'xxx' : no function prototype given: converting '()' to '(void)' |
| 86 | 87 | // warning C4296: 'x' : expression is always false |
| 88 | // warning C4306: 'xxx': conversion from 'type1' to 'type2' of greater size // 64-bit only |
| 87 | 89 | // warning C4310: cast truncates constant value |
| 88 | 90 | // warning C4324: 'xxx' : structure was padded due to __declspec(align()) |
| 89 | 91 | // warning C4347: behavior change: 'xxx' is called instead of 'xxx' // obsolete VS2005 - VS2010 only |
| r243341 | r243342 | |
| 91 | 93 | // warning C4510: 'xxx' : default constructor could not be generated |
| 92 | 94 | // warning C4512: 'xxx' : assignment operator could not be generated |
| 93 | 95 | // warning C4514: 'xxx' : unreferenced inline function has been removed |
| 96 | // warning C4611: interaction between '_setjmp' and C++ object destruction is non-portable |
| 94 | 97 | // warning C4619: #pragma warning : there is no warning number 'xxx' |
| 95 | 98 | // warning C4571: Informational: catch(...) semantics changed since Visual C++ 7.1; structured exceptions (SEH) are no longer caught |
| 96 | 99 | // warning C4610: struct 'xxx' can never be instantiated - user defined constructor required |
| 97 | 100 | // warning C4625: 'xxx' : copy constructor could not be generated because a base class copy constructor is inaccessible or deleted |
| 98 | 101 | // warning C4626: 'xxx' : assignment operator could not be generated because a base class assignment operator is inaccessible or deleted |
| 102 | // warning C4640: 'xxx' : construction of local static object is not thread-safe |
| 99 | 103 | // warning C4668: 'xxx' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif' |
| 100 | 104 | // warning C4702: unreachable code |
| 101 | 105 | // warning C4706: assignment within conditional expression |
| r243341 | r243342 | |
| 104 | 108 | // warning C4805: 'x' : unsafe mix of type 'xxx' and type 'xxx' in operation |
| 105 | 109 | // warning C4820: 'xxx' : 'x' bytes padding added after data member 'xxx' |
| 106 | 110 | // warning C4826: Conversion from 'type1 ' to 'type_2' is sign-extended. This may cause unexpected runtime behavior. // 32-bit only |
| 107 | | { VS7, "-Wall", "/Wall /W4 /wd4003 /wd4018 /wd4061 /wd4100 /wd4127 /wd4131 /wd4141 /wd4146 /wd4150 /wd4189 /wd4201 /wd4242 /wd4244 /wd4250 /wd4255 /wd4296 /wd4310 /wd4324 /wd4347 /wd4435 /wd4510 /wd4512 /wd4514 /wd4571 /wd4610 /wd4619 /wd4625 /wd4626 /wd4668 /wd4702 /wd4706 /wd4710 /wd4711 /wd4805 /wd4820 /wd4826" }, |
| 111 | { VS7, "-Wall", "/Wall /W4 /wd4003 /wd4018 /wd4061 /wd4100 /wd4127 /wd4131 /wd4141 /wd4146 /wd4150 /wd4189 /wd4191 /wd4201 /wd4242 /wd4244 /wd4250 /wd4255 /wd4296 /wd4306 /wd4310 /wd4324 /wd4347 /wd4435 /wd4510 /wd4512 /wd4514 /wd4571 /wd4610 /wd4611 /wd4619 /wd4625 /wd4626 /wd4640 /wd4668 /wd4702 /wd4706 /wd4710 /wd4711 /wd4805 /wd4820 /wd4826" }, |
| 108 | 112 | { 0, "-Wall", "/W0" }, |
| 109 | 113 | { VS7, "-Wno-unused", "/wd4100 /wd4101 /wd4102 /wd4505" }, |
| 110 | 114 | { 0, "-Wno-sign-compare", "/wd4365 /wd4389 /wd4245 /wd4388" }, |
trunk/src/osd/windows/winprefix.h
| r243341 | r243342 | |
| 13 | 13 | #ifdef _MSC_VER |
| 14 | 14 | #include <assert.h> |
| 15 | 15 | #include <malloc.h> |
| 16 | | #if _MSC_VER < 1500 // < VS2008 |
| 17 | | #define vsnprintf _vsnprintf |
| 18 | | #elif _MSC_VER < 1800 // < VS2013 |
| 16 | #if _MSC_VER < 1900 // < VS2015 |
| 17 | #define snprintf _snprintf |
| 18 | #if _MSC_VER < 1800 // VS2013 or earlier |
| 19 | 19 | #define alloca _alloca |
| 20 | 20 | #define round(x) floor((x) + 0.5) |
| 21 | 21 | #define strtoll _strtoi64 |
| r243341 | r243342 | |
| 24 | 24 | static __inline double fmin(double x, double y){ return (x < y) ? x : y; } |
| 25 | 25 | static __inline double fmax(double x, double y){ return (x > y) ? x : y; } |
| 26 | 26 | static __inline double log2(double x) { return log(x) * M_LOG2E; } |
| 27 | | #elif _MSC_VER < 1900 // < VS2015 |
| 28 | | #define snprintf _snprintf |
| 29 | | #else |
| 27 | #if _MSC_VER < 1500 // VS2008 or earlier |
| 28 | #define vsnprintf _vsnprintf |
| 29 | #endif // VS2008 |
| 30 | #endif // VS2013 |
| 31 | #else // VS2015 |
| 30 | 32 | #pragma warning (disable: 4091) |
| 31 | 33 | #pragma warning (disable: 4267) |
| 32 | 34 | #pragma warning (disable: 4456 4457 4458 4459) |