diff options
author | Benny Prijono <bennylp@teluu.com> | 2009-01-01 20:56:36 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2009-01-01 20:56:36 +0000 |
commit | 423bd3b19d5611412da90b87f6989dc89339defa (patch) | |
tree | e2d8a8d63b37d55ca2a8777e64a7ed054088683d /pjlib/include/pj/compat/cc_msvc.h | |
parent | 808f9942b9b55991273a490f234900cdf0bb457f (diff) |
Fixed unreached code, deprecated fopen(), unused arguments, and other warnings with MSVC
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2407 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/include/pj/compat/cc_msvc.h')
-rw-r--r-- | pjlib/include/pj/compat/cc_msvc.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pjlib/include/pj/compat/cc_msvc.h b/pjlib/include/pj/compat/cc_msvc.h index b5a0e08e..e6c139da 100644 --- a/pjlib/include/pj/compat/cc_msvc.h +++ b/pjlib/include/pj/compat/cc_msvc.h @@ -38,6 +38,13 @@ #if PJ_CC_VER_1 >= 8 && !defined(_CRT_SECURE_NO_DEPRECATE) # define _CRT_SECURE_NO_DEPRECATE #endif +#if PJ_CC_VER_1 >= 8 && !defined(_CRT_SECURE_NO_WARNINGS) +# define _CRT_SECURE_NO_WARNINGS + /* The above doesn't seem to work, at least on VS2005, so lets use + * this construct as well. + */ +# pragma warning(disable: 4996) +#endif #pragma warning(disable: 4127) // conditional expression is constant #pragma warning(disable: 4611) // not wise to mix setjmp with C++ @@ -71,5 +78,7 @@ typedef unsigned __int64 pj_uint64_t; #define PJ_UINT64(val) val##ui64 #define PJ_INT64_FMT "I64" +#define PJ_UNREACHED(x) #endif /* __PJ_COMPAT_CC_MSVC_H__ */ + |