Changeset 71


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

Fixed MSVC compilation warnings in release build

Location:
pjproject/trunk/pjlib
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/build/pjlib.dsp

    r65 r71  
    4242# PROP Target_Dir "" 
    4343# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c 
    44 # ADD CPP /nologo /MD /W4 /Zi /O2 /I "../include" /D "NDEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /D "PJ_WIN32" /D "PJ_M_I386" /FR /FD /c 
     44# ADD CPP /nologo /MD /W4 /Zi /O2 /Ob2 /I "../include" /D "NDEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /D "PJ_WIN32" /D "PJ_M_I386" /FR /FD /c 
    4545# SUBTRACT CPP /YX 
    4646# ADD BASE RSC /l 0x409 /d "NDEBUG" 
  • 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; 
  • pjproject/trunk/pjlib/src/pj/ioqueue_winnt.c

    r66 r71  
    439439    generic_overlapped *pOv; 
    440440    pj_ioqueue_key_t *key; 
    441     pj_ssize_t size_status; 
     441    pj_ssize_t size_status = -1; 
    442442    BOOL rc; 
    443443 
     
    510510        /* Check the connecting array (again). */ 
    511511#if PJ_HAS_TCP 
     512        size_status = -1;   /* make MSVC happy */ 
    512513        key = check_connecting(ioqueue, &size_status); 
    513514        if (key != NULL) { 
  • pjproject/trunk/pjlib/src/pjlib-test/test.c

    r65 r71  
    189189        return test_inner(); 
    190190    } 
    191     PJ_DEFAULT { 
     191    PJ_CATCH_ANY { 
    192192        int id = PJ_GET_EXCEPTION(); 
    193193        PJ_LOG(3,("test", "FATAL: unhandled exception id %d (%s)",  
Note: See TracChangeset for help on using the changeset viewer.