Changeset 5646


Ignore:
Timestamp:
Sep 8, 2017 11:16:09 AM (7 years ago)
Author:
ming
Message:

Re #1994 (misc): Fixed various warnings thrown by GCC 6.3. Thanks to Alexander Traud for the info.

Location:
pjproject/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pjlib-test/exception.c

    r5060 r5646  
    169169        switch (PJ_GET_EXCEPTION()) { 
    170170        case ID_1: 
    171             if (!rc) rc = -30; break; 
     171            if (!rc) rc = -30; 
     172            break; 
    172173        case ID_2: 
    173             if (!rc) rc = 0; break; 
     174            if (!rc) rc = 0; 
     175            break; 
    174176        default: 
    175177            if (!rc) rc = -40; 
  • pjproject/trunk/pjmedia/src/pjmedia-audiodev/alsa_dev.c

    r5616 r5646  
    939939 
    940940    if (cap==PJMEDIA_AUD_DEV_CAP_OUTPUT_VOLUME_SETTING && af->pb_mixer_name) { 
    941         int result; 
    942941        pj_ssize_t min, max; 
    943942        snd_mixer_t *handle; 
  • pjproject/trunk/pjsip-apps/src/samples/pjsua2_demo.cpp

    r5467 r5646  
    129129    acc_cfg.sipConfig.authCreds.push_back( AuthCredInfo("digest", "*", 
    130130                                                        "test1", 0, "test1") ); 
    131     std::auto_ptr<MyAccount> acc(new MyAccount); 
     131    std::unique_ptr<MyAccount> acc(new MyAccount); 
    132132    acc->create(acc_cfg); 
    133133     
     
    308308    AccountConfig acc_cfg; 
    309309    acc_cfg.idUri = "sip:localhost"; 
    310     std::auto_ptr<MyAccount> acc(new MyAccount); 
     310    std::unique_ptr<MyAccount> acc(new MyAccount); 
    311311    acc->create(acc_cfg); 
    312312 
Note: See TracChangeset for help on using the changeset viewer.