Changeset 5763


Ignore:
Timestamp:
Apr 2, 2018 5:01:41 AM (17 months ago)
Author:
ming
Message:

Re #2059 (misc): Remove -Wunused-but-set-variable in Python SIP module.

Thanks to Alexander Traud for the patch.
Note that the patch is a contribution and the module itself has been deprecated and will no longer be maintained (https://trac.pjsip.org/repos/wiki/Python_SIP/Build_Install).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/python/_pjsua.c

    r4724 r5763  
    12001200static PyObject *py_pjsua_enum_transports(PyObject *pSelf, PyObject *pArgs) 
    12011201{ 
    1202     pj_status_t status; 
    12031202    PyObject *list; 
    12041203    pjsua_transport_id id[PJSIP_MAX_TRANSPORTS]; 
     
    12091208 
    12101209    c = PJ_ARRAY_SIZE(id); 
    1211     status = pjsua_enum_transports(id, &c); 
     1210    pjsua_enum_transports(id, &c); 
    12121211     
    12131212    list = PyList_New(c); 
     
    23362335    PyObj_pjsua_conf_port_info *ret; 
    23372336    pjsua_conf_port_info info; 
    2338     int status;  
    23392337    unsigned i; 
    23402338 
     
    23452343    } 
    23462344     
    2347     status = pjsua_conf_get_port_info(id, &info); 
     2345    pjsua_conf_get_port_info(id, &info); 
    23482346    ret = (PyObj_pjsua_conf_port_info *) 
    23492347          conf_port_info_new(&PyTyp_pjsua_conf_port_info, NULL, NULL); 
     
    27122710{        
    27132711    int capture_dev, playback_dev; 
    2714     int status;  
    27152712     
    27162713    PJ_UNUSED_ARG(pSelf); 
    27172714    PJ_UNUSED_ARG(pArgs); 
    27182715 
    2719     status = pjsua_get_snd_dev(&capture_dev, &playback_dev); 
     2716    pjsua_get_snd_dev(&capture_dev, &playback_dev); 
    27202717     
    27212718    return Py_BuildValue("ii", capture_dev, playback_dev); 
Note: See TracChangeset for help on using the changeset viewer.