Ignore:
Timestamp:
Jan 1, 2009 8:56:36 PM (15 years ago)
Author:
bennylp
Message:

Fixed unreached code, deprecated fopen(), unused arguments, and other warnings with MSVC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/compat/cc_msvc.h

    r2394 r2407  
    3939#   define _CRT_SECURE_NO_DEPRECATE 
    4040#endif 
     41#if PJ_CC_VER_1 >= 8 && !defined(_CRT_SECURE_NO_WARNINGS) 
     42#   define _CRT_SECURE_NO_WARNINGS 
     43    /* The above doesn't seem to work, at least on VS2005, so lets use 
     44     * this construct as well. 
     45     */ 
     46#   pragma warning(disable: 4996) 
     47#endif 
    4148 
    4249#pragma warning(disable: 4127) // conditional expression is constant 
     
    7279#define PJ_INT64_FMT            "I64" 
    7380 
     81#define PJ_UNREACHED(x)          
    7482 
    7583#endif  /* __PJ_COMPAT_CC_MSVC_H__ */ 
     84 
Note: See TracChangeset for help on using the changeset viewer.