Ignore:
Timestamp:
Apr 27, 2009 7:18:38 PM (15 years ago)
Author:
nanang
Message:

Cleaned up bunch of compile warnings. Special for libgsmcodec, its warning level is reduced from 4 to 3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/vs-reorg2/pjsip-apps/src/pocketpj/PocketPJDlg.cpp

    r2282 r2654  
    240240        pj_unicode_to_ansi((LPCTSTR)codec, codec.GetLength(), 
    241241                           tmp_nam, sizeof(tmp_nam)); 
    242         pjsua_codec_set_priority(pj_cstr(&tmp, tmp_nam), 200-i); 
     242        pjsua_codec_set_priority(pj_cstr(&tmp, tmp_nam), (pj_uint8_t)(200-i)); 
    243243    } 
    244244 
     
    323323                                unsigned userData) 
    324324{ 
     325    PJ_UNUSED_ARG(userData); 
     326 
    325327    if (!m_PopUpState[type]) 
    326328        ++m_PopUpCount; 
     
    420422void CPocketPJDlg::on_call_state(pjsua_call_id call_id, pjsip_event *e) 
    421423{ 
     424    PJ_UNUSED_ARG(e); 
     425    PJ_UNUSED_ARG(call_id); 
     426 
    422427    theDlg->OnCallState(); 
    423428} 
     
    437442                                    pjsip_rx_data *rdata) 
    438443{ 
     444    PJ_UNUSED_ARG(acc_id); 
     445    PJ_UNUSED_ARG(call_id); 
     446    PJ_UNUSED_ARG(rdata); 
    439447} 
    440448 
     
    449457        /* Registration success */ 
    450458        HBITMAP old = m_BtnAcc.SetBitmap(::LoadBitmap(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDB_ONLINE)) ); 
     459        PJ_UNUSED_ARG(old); 
    451460        acc_text += " (OK)"; 
    452461        m_AccId.SetWindowText(acc_text); 
     
    461470void CPocketPJDlg::on_reg_state(pjsua_acc_id acc_id) 
    462471{ 
     472    PJ_UNUSED_ARG(acc_id); 
     473 
    463474    theDlg->OnRegState(); 
    464475} 
     
    466477void CPocketPJDlg::on_buddy_state(pjsua_buddy_id buddy_id) 
    467478{ 
     479    PJ_UNUSED_ARG(buddy_id); 
     480 
    468481    theDlg->RedrawBuddyList(); 
    469482} 
     
    473486                            const pj_str_t *mime_type, const pj_str_t *text) 
    474487{ 
     488    PJ_UNUSED_ARG(call_id); 
     489    PJ_UNUSED_ARG(from); 
     490    PJ_UNUSED_ARG(to); 
     491    PJ_UNUSED_ARG(contact); 
     492    PJ_UNUSED_ARG(mime_type); 
     493    PJ_UNUSED_ARG(text); 
    475494} 
    476495 
     
    741760{ 
    742761    POSITION pos = m_BuddyList.GetFirstSelectedItemPosition(); 
     762 
     763    PJ_UNUSED_ARG(pNMHDR); 
     764 
    743765    if (pos != NULL) { 
    744766        int iItem = m_BuddyList.GetNextSelectedItem(pos); 
Note: See TracChangeset for help on using the changeset viewer.