Ignore:
Timestamp:
Jun 12, 2019 6:00:35 AM (3 years ago)
Author:
nanang
Message:

Misc (re #2147): Fixed compile warnings "dynamic exception specifications are deprecated in C++11".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/samples/pjsua2_demo.cpp

    r5986 r6026  
    175175 
    176176 
    177 static void mainProg1(Endpoint &ep) throw(Error) 
     177static void mainProg1(Endpoint &ep) 
    178178{ 
    179179    // Init library 
     
    198198                                                        "test1", 0, "test1") ); 
    199199    MyAccount *acc(new MyAccount); 
    200     acc->create(acc_cfg); 
     200    try { 
     201        acc->create(acc_cfg); 
     202    } catch (...) { 
     203        std::cout << "Adding account failed" << std::endl; 
     204    } 
    201205     
    202206    pj_thread_sleep(2000); 
     
    220224} 
    221225 
    222 static void mainProg2() throw(Error) 
     226static void mainProg2() 
    223227{ 
    224228    string json_str; 
     
    266270 
    267271 
    268 static void mainProg3(Endpoint &ep) throw(Error) 
     272static void mainProg3(Endpoint &ep) 
    269273{ 
    270274    const char *paths[] = { "../../../../tests/pjsua/wavs/input.16.wav", 
     
    325329 
    326330 
    327 static void mainProg() throw(Error) 
     331static void mainProg() 
    328332{ 
    329333    string json_str; 
     
    377381 
    378382 
    379 static void mainProg4(Endpoint &ep) throw(Error) 
     383static void mainProg4(Endpoint &ep) 
    380384{ 
    381385    // Init library 
Note: See TracChangeset for help on using the changeset viewer.