Ignore:
Timestamp:
Nov 21, 2005 5:01:06 PM (18 years ago)
Author:
bennylp
Message:

Fixed MSVC compilation warnings in release build

File:
1 edited

Legend:

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

    r65 r71  
    2929#endif 
    3030 
    31 #  pragma warning(disable: 4127)        // conditional expression is constant 
    32 #  pragma warning(disable: 4611)        // not wise to mix setjmp with C++ 
    33 #  pragma warning(disable: 4514)        // unreferenced inline function has been removed 
    34 #  ifdef __cplusplus 
    35 #    define PJ_INLINE_SPECIFIER inline 
    36 #  else 
    37 #    define PJ_INLINE_SPECIFIER static __inline 
    38 #  endif 
    39 #  define PJ_THREAD_FUNC         
    40 #  define PJ_NORETURN           __declspec(noreturn) 
    41 #  define PJ_ATTR_NORETURN       
     31#pragma warning(disable: 4127) // conditional expression is constant 
     32#pragma warning(disable: 4611) // not wise to mix setjmp with C++ 
     33#pragma warning(disable: 4514) // unref. inline function has been removed 
     34#ifdef NDEBUG 
     35#  pragma warning(disable: 4702) // unreachable code 
     36#  pragma warning(disable: 4710) // function is not inlined. 
     37#  pragma warning(disable: 4711) // function selected for auto inline expansion 
     38#endif 
    4239 
    43 #  define PJ_HAS_INT64  1 
     40#ifdef __cplusplus 
     41#  define PJ_INLINE_SPECIFIER   inline 
     42#else 
     43#  define PJ_INLINE_SPECIFIER   static __inline 
     44#endif 
     45 
     46#define PJ_THREAD_FUNC   
     47#define PJ_NORETURN             __declspec(noreturn) 
     48#define PJ_ATTR_NORETURN         
     49 
     50#define PJ_HAS_INT64    1 
     51 
    4452typedef __int64 pj_int64_t; 
    4553typedef unsigned __int64 pj_uint64_t; 
Note: See TracChangeset for help on using the changeset viewer.