Changeset 6028


Ignore:
Timestamp:
Jun 13, 2019 5:58:18 AM (5 years ago)
Author:
ming
Message:

Re #2147 (misc): Suppressed various warnings from XCode (iOS)

  • this function declaration is not a prototype, and some typecasts
Location:
pjproject/trunk/pjsip-apps/src/pjsua
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/ios/ipjsua/ipjsuaAppDelegate.m

    r5653 r6028  
    242242    if (dev_ori == prev_ori) return; 
    243243     
    244     NSLog(@"Device orientation changed: %d", (prev_ori = dev_ori)); 
     244    NSLog(@"Device orientation changed: %d", (int)(prev_ori = dev_ori)); 
    245245     
    246246    if (dev_ori >= UIDeviceOrientationPortrait && 
  • pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c

    r6027 r6028  
    5454static void ring_start(pjsua_call_id call_id); 
    5555static void ring_stop(pjsua_call_id call_id); 
    56 static pj_status_t app_init(); 
    57 static pj_status_t app_destroy(); 
     56static pj_status_t app_init(void); 
     57static pj_status_t app_destroy(void); 
    5858 
    5959static pjsua_app_cfg_t app_cfg; 
     
    12521252} 
    12531253 
    1254 static pj_status_t app_init() 
     1254static pj_status_t app_init(void) 
    12551255{ 
    12561256    pjsua_transport_id transport_id = -1; 
     
    19811981} 
    19821982 
    1983 static pj_status_t app_destroy() 
     1983static pj_status_t app_destroy(void) 
    19841984{ 
    19851985    pj_status_t status = PJ_SUCCESS; 
     
    20662066} 
    20672067 
    2068 pj_status_t pjsua_app_destroy() 
     2068pj_status_t pjsua_app_destroy(void) 
    20692069{ 
    20702070    pj_status_t status; 
  • pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.h

    r4489 r6028  
    8282 * This will destroy/cleanup the application library. 
    8383 */ 
    84 pj_status_t pjsua_app_destroy(); 
     84pj_status_t pjsua_app_destroy(void); 
    8585 
    8686PJ_END_DECL 
  • pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app_cli.c

    r5939 r6028  
    163163/** Forward declaration **/ 
    164164pj_status_t cli_setup_command(pj_cli_t *cli); 
    165 void cli_destroy(); 
     165void cli_destroy(void); 
    166166 
    167167PJ_DEF(void) cli_get_info(char *info, pj_size_t size) 
     
    185185} 
    186186 
    187 pj_status_t cli_init() 
     187pj_status_t cli_init(void) 
    188188{ 
    189189    pj_status_t status; 
     
    267267} 
    268268 
    269 void cli_destroy() 
     269void cli_destroy(void) 
    270270{ 
    271271    /* Destroy CLI, it will automatically destroy any FEs */ 
  • pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app_common.c

    r6027 r6028  
    6363 * press ']' 
    6464 */ 
    65 pj_bool_t find_next_call() 
     65pj_bool_t find_next_call(void) 
    6666{ 
    6767    int i, max; 
     
    8686} 
    8787 
    88 pj_bool_t find_prev_call() 
     88pj_bool_t find_prev_call(void) 
    8989{ 
    9090    int i, max; 
     
    329329} 
    330330 
    331 void vid_list_devs() 
     331void vid_list_devs(void) 
    332332{ 
    333333    unsigned i, count; 
  • pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app_common.h

    r5746 r6028  
    170170 
    171171int my_atoi(const char *cs); 
    172 pj_bool_t find_next_call(); 
    173 pj_bool_t find_prev_call(); 
     172pj_bool_t find_next_call(void); 
     173pj_bool_t find_prev_call(void); 
    174174void send_request(char *cstr_method, const pj_str_t *dst_uri); 
    175175void log_call_dump(int call_id); 
     
    178178void arrange_window(pjsua_vid_win_id wid); 
    179179 
    180 /** Defined in pjsua_cli_cmd.c **/ 
    181 pj_bool_t is_cli_inited(); 
    182  
    183 /** Defined in pjsua_config.c **/ 
     180/** Defined in pjsua_app_config.c **/ 
    184181/** This is to load the configuration **/ 
    185182pj_status_t load_config(int argc, char **argv, pj_str_t *uri_arg); 
     
    196193 
    197194/** Pjsua cli method **/ 
    198 pj_status_t cli_init(); 
     195pj_status_t cli_init(void); 
    199196pj_status_t cli_main(pj_bool_t wait_telnet_cli); 
    200 void cli_destroy(); 
     197void cli_destroy(void); 
    201198void cli_get_info(char *info, pj_size_t size);  
    202199 
    203200/** Legacy method **/ 
    204 void legacy_main(); 
     201void legacy_main(void); 
    205202 
    206203#if PJSUA_HAS_VIDEO 
    207204void vid_print_dev(int id, const pjmedia_vid_dev_info *vdi, const char *title); 
    208 void vid_list_devs(); 
     205void vid_list_devs(void); 
    209206void app_config_show_video(int acc_id, const pjsua_acc_config *acc_cfg); 
    210207#endif 
  • pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app_config.c

    r6004 r6028  
    10731073                if (pj_ansi_strnicmp(pj_optarg, "0x", 2) == 0) { 
    10741074                    pj_str_t cipher_st = pj_str(pj_optarg + 2); 
    1075                     cipher = pj_strtoul2(&cipher_st, NULL, 16); 
     1075                    cipher = (pj_ssl_cipher)pj_strtoul2(&cipher_st, NULL, 16); 
    10761076                } else { 
    10771077                    cipher = atoi(pj_optarg); 
     
    13471347                if (pj_ansi_strnicmp(pj_optarg, "0x", 2) == 0) { 
    13481348                    pj_str_t cipher_st = pj_str(pj_optarg + 2); 
    1349                     cipher = pj_strtoul2(&cipher_st, NULL, 16); 
     1349                    cipher = (pj_ssl_cipher)pj_strtoul2(&cipher_st, NULL, 16); 
    13501350                } else { 
    13511351                    cipher = atoi(pj_optarg); 
  • pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app_legacy.c

    r6008 r6028  
    17541754 * Main "user interface" loop. 
    17551755 */ 
    1756 void legacy_main() 
     1756void legacy_main(void) 
    17571757{ 
    17581758    char menuin[80]; 
Note: See TracChangeset for help on using the changeset viewer.