[sr-dev] [kamailio/kamailio] ims_auth: compiler warnings (#658)

Victor Seva notifications at github.com
Mon Jun 6 11:14:47 CEST 2016


```
CC (gcc) [M ims_auth.so]		rfc2617.o
CC (gcc) [M ims_auth.so]		authims_mod.o
In file included from authims_mod.c:59:0:
authorize.h:187:13: warning: inline function 'start_reg_await_timer' declared but never defined
 inline void start_reg_await_timer(auth_vector *av);
             ^
authorize.h:171:21: warning: inline function 'get_hash_auth' declared but never defined
 inline unsigned int get_hash_auth(str private_identity,str public_identity);
                     ^
authorize.h:158:13: warning: inline function 'auth_data_unlock' declared but never defined
 inline void auth_data_unlock(unsigned int hash);
             ^
authorize.h:157:13: warning: inline function 'auth_data_lock' declared but never defined
 inline void auth_data_lock(unsigned int hash);
             ^
CC (gcc) [M ims_auth.so]		cxdx_avp.o
cxdx_avp.c:1058:2: warning: 'cxdx_add_avp' is static but used in inline function 'cxdx_add_result_code' which is not static
  cxdx_add_avp(msg,x,4,
  ^
cxdx_avp.c:1041:9: warning: 'cxdx_get_avp' is static but used in inline function 'cxdx_get_user_name' which is not static
  return cxdx_get_avp(msg,
         ^
cxdx_avp.c:1004:2: warning: 'cxdx_add_avp' is static but used in inline function 'cxdx_add_userdata_available' which is not static
  cxdx_add_avp(msg,x,4,
  ^
cxdx_avp.c:985:2: warning: 'cxdx_add_avp' is static but used in inline function 'cxdx_add_server_assignment_type' which is not static
  cxdx_add_avp(msg,x,4,
  ^
cxdx_avp.c:940:8: warning: 'cxdx_get_avp' is static but used in inline function 'cxdx_get_charging_info' which is not static
  grp = cxdx_get_avp(msg,
        ^
cxdx_avp.c:924:9: warning: 'cxdx_get_avp' is static but used in inline function 'cxdx_get_user_data' which is not static
  return cxdx_get_avp(msg,
         ^
cxdx_avp.c:616:6: warning: 'cxdx_get_avp' is static but used in inline function 'cxdx_get_sip_number_auth_items' which is not static
  s = cxdx_get_avp(msg,
      ^
cxdx_avp.c:600:2: warning: 'cxdx_add_avp' is static but used in inline function 'cxdx_add_server_name' which is not static
  cxdx_add_avp(msg,data.s,data.len,
  ^
cxdx_avp.c:583:2: warning: 'cxdx_add_avp' is static but used in inline function 'cxdx_add_sip_auth_data_item_request' which is not static
  cxdx_add_avp(msg,group.s,group.len,
  ^
cxdx_avp.c:567:4: warning: 'cxdx_add_avp_list' is static but used in inline function 'cxdx_add_sip_auth_data_item_request' which is not static
    cxdx_add_avp_list(&list,
    ^
cxdx_avp.c:564:117: warning: 's_empty' is static but used in inline function 'cxdx_add_sip_auth_data_item_request' which is not static
   etsi_authorization = cxdx_ETSI_sip_authorization(username, realm, s_empty, server_name, s_empty, s_empty, method, s_empty);
                                                                                                                     ^
cxdx_avp.c:564:100: warning: 's_empty' is static but used in inline function 'cxdx_add_sip_auth_data_item_request' which is not static
   etsi_authorization = cxdx_ETSI_sip_authorization(username, realm, s_empty, server_name, s_empty, s_empty, method, s_empty);
                                                                                                    ^
cxdx_avp.c:564:91: warning: 's_empty' is static but used in inline function 'cxdx_add_sip_auth_data_item_request' which is not static
   etsi_authorization = cxdx_ETSI_sip_authorization(username, realm, s_empty, server_name, s_empty, s_empty, method, s_empty);
                                                                                           ^
cxdx_avp.c:564:69: warning: 's_empty' is static but used in inline function 'cxdx_add_sip_auth_data_item_request' which is not static
   etsi_authorization = cxdx_ETSI_sip_authorization(username, realm, s_empty, server_name, s_empty, s_empty, method, s_empty);
                                                                     ^
cxdx_avp.c:553:3: warning: 'cxdx_add_avp_list' is static but used in inline function 'cxdx_add_sip_auth_data_item_request' which is not static
   cxdx_add_avp_list(&list,
   ^
cxdx_avp.c:544:3: warning: 'cxdx_add_avp_list' is static but used in inline function 'cxdx_add_sip_auth_data_item_request' which is not static
   cxdx_add_avp_list(&list,
   ^
cxdx_avp.c:521:2: warning: 'cxdx_add_avp' is static but used in inline function 'cxdx_add_sip_number_auth_items' which is not static
  cxdx_add_avp(msg,x,4,
  ^
cxdx_avp.c:428:8: warning: 'cxdx_get_avp' is static but used in inline function 'cxdx_get_capabilities' which is not static
  grp = cxdx_get_avp(msg,
        ^
cxdx_avp.c:407:9: warning: 'cxdx_get_avp' is static but used in inline function 'cxdx_get_server_name' which is not static
  return cxdx_get_avp(msg,
         ^
cxdx_avp.c:380:8: warning: 'cxdx_get_avp' is static but used in inline function 'cxdx_get_experimental_result_code' which is not static
  grp = cxdx_get_avp(msg,
        ^
cxdx_avp.c:361:6: warning: 'cxdx_get_avp' is static but used in inline function 'cxdx_get_result_code' which is not static
  s = cxdx_get_avp(msg,
      ^
cxdx_avp.c:345:2: warning: 'cxdx_add_avp' is static but used in inline function 'cxdx_add_authorization_type' which is not static
  cxdx_add_avp(msg,x,4,
  ^
cxdx_avp.c:326:2: warning: 'cxdx_add_avp' is static but used in inline function 'cxdx_add_UAR_flags' which is not static
  cxdx_add_avp(msg,x,4,
  ^
cxdx_avp.c:302:2: warning: 'cxdx_add_avp' is static but used in inline function 'cxdx_add_visited_network_id' which is not static
  cxdx_add_avp(msg,data.s,data.len,
  ^
cxdx_avp.c:285:2: warning: 'cxdx_add_avp' is static but used in inline function 'cxdx_add_public_identity' which is not static
  cxdx_add_avp(msg,data.s,data.len,
  ^
cxdx_avp.c:268:2: warning: 'cxdx_add_avp' is static but used in inline function 'cxdx_add_user_name' which is not static
  cxdx_add_avp(msg,data.s,data.len,
  ^
cxdx_avp.c:251:2: warning: 'cxdx_add_avp' is static but used in inline function 'cxdx_add_auth_session_state' which is not static
  cxdx_add_avp(msg,x,4,
  ^
cxdx_avp.c:232:2: warning: 'cxdx_add_avp' is static but used in inline function 'cxdx_add_vendor_specific_appid' which is not static
  cxdx_add_avp(msg,group.s,group.len,
  ^
cxdx_avp.c:218:3: warning: 'cxdx_add_avp_list' is static but used in inline function 'cxdx_add_vendor_specific_appid' which is not static
   cxdx_add_avp_list(&list,
   ^
cxdx_avp.c:208:3: warning: 'cxdx_add_avp_list' is static but used in inline function 'cxdx_add_vendor_specific_appid' which is not static
   cxdx_add_avp_list(&list,
   ^
cxdx_avp.c:198:2: warning: 'cxdx_add_avp_list' is static but used in inline function 'cxdx_add_vendor_specific_appid' which is not static
  cxdx_add_avp_list(&list,
  ^
cxdx_avp.c:172:2: warning: 'cxdx_add_avp' is static but used in inline function 'cxdx_add_destination_host' which is not static
  cxdx_add_avp(msg,data.s,data.len,
  ^
cxdx_avp.c:155:2: warning: 'cxdx_add_avp' is static but used in inline function 'cxdx_add_destination_realm' which is not static
  cxdx_add_avp(msg,data.s,data.len,
  ^
CC (gcc) [M ims_auth.so]		authorize.o
authorize.c:1397:40: warning: 'act_auth_data_hash_size' is static but used in inline function 'get_hash_auth' which is not static
  return core_hash(&public_identity, 0, act_auth_data_hash_size);
                                        ^
authorize.c:1397:9: warning: 'core_hash' is static but used in inline function 'get_hash_auth' which is not static
  return core_hash(&public_identity, 0, act_auth_data_hash_size);
         ^
authorize.c:1395:40: warning: 'act_auth_data_hash_size' is static but used in inline function 'get_hash_auth' which is not static
  return core_hash(&public_identity, 0, act_auth_data_hash_size);
                                        ^
authorize.c:1395:9: warning: 'core_hash' is static but used in inline function 'get_hash_auth' which is not static
  return core_hash(&public_identity, 0, act_auth_data_hash_size);
         ^
In file included from ../../mem/shm.h:39:0,
                 from ../../mem/shm_mem.h:34,
                 from ../../ut.h:45,
                 from authorize.c:47:
../../mem/../lock_ops.h:88:28: warning: 'futex_release' is static but used in inline function 'auth_data_unlock' which is not static
 #define lock_release(lock) futex_release(lock)
                            ^
authorize.c:1098:5: note: in expansion of macro 'lock_release'
     lock_release(auth_data[(hash)].lock);
     ^
../../mem/../lock_ops.h:87:25: warning: 'futex_get' is static but used in inline function 'auth_data_lock' which is not static
 #define lock_get(lock)  futex_get(lock)
                         ^
authorize.c:1090:5: note: in expansion of macro 'lock_get'
     lock_get(auth_data[(hash)].lock);
     ^
In file included from authorize.c:64:0:
cxdx_avp.h:282:12: warning: inline function 'cxdx_add_result_code' declared but never defined
 inline int cxdx_add_result_code(AAAMessage *msg,unsigned int data);
            ^
cxdx_avp.h:274:12: warning: inline function 'cxdx_get_user_name' declared but never defined
 inline str cxdx_get_user_name(AAAMessage *msg);
            ^
cxdx_avp.h:267:17: warning: inline function 'cxdx_get_next_public_identity' declared but never defined
 inline AAA_AVP* cxdx_get_next_public_identity(AAAMessage *msg,AAA_AVP* pos,int avp_code,int vendor_id,const char *func);
                 ^
cxdx_avp.h:256:12: warning: inline function 'cxdx_add_userdata_available' declared but never defined
 inline int cxdx_add_userdata_available(AAAMessage *msg,unsigned int data);
            ^
cxdx_avp.h:248:12: warning: inline function 'cxdx_add_server_assignment_type' declared but never defined
 inline int cxdx_add_server_assignment_type(AAAMessage *msg,unsigned int data);
            ^
cxdx_avp.h:240:12: warning: inline function 'cxdx_get_charging_info' declared but never defined
 inline int cxdx_get_charging_info(AAAMessage *msg,str *ccf1,str *ccf2,str *ecf1,str *ecf2);
            ^
cxdx_avp.h:233:12: warning: inline function 'cxdx_get_user_data' declared but never defined
 inline str cxdx_get_user_data(AAAMessage *msg);
            ^
cxdx_avp.h:192:12: warning: inline function 'cxdx_get_sip_number_auth_items' declared but never defined
 inline int cxdx_get_sip_number_auth_items(AAAMessage *msg, int *data);
            ^
cxdx_avp.h:185:12: warning: inline function 'cxdx_add_server_name' declared but never defined
 inline int cxdx_add_server_name(AAAMessage *msg,str data);
            ^
In file included from authorize.c:64:0:
cxdx_avp.h:177:12: warning: inline function 'cxdx_add_sip_auth_data_item_request' declared but never defined
 inline int cxdx_add_sip_auth_data_item_request(AAAMessage *msg, str auth_scheme, str auth, str username, str realm,str method, str server_name);
            ^
cxdx_avp.h:168:12: warning: inline function 'cxdx_add_sip_number_auth_items' declared but never defined
 inline int cxdx_add_sip_number_auth_items(AAAMessage *msg,unsigned int data);
            ^
cxdx_avp.h:160:12: warning: inline function 'cxdx_get_capabilities' declared but never defined
 inline int cxdx_get_capabilities(AAAMessage *msg,int **m,int *m_cnt,int **o,int *o_cnt, str **p,int *p_cnt);
            ^
cxdx_avp.h:149:12: warning: inline function 'cxdx_get_server_name' declared but never defined
 inline str cxdx_get_server_name(AAAMessage *msg);
            ^
cxdx_avp.h:142:12: warning: inline function 'cxdx_get_experimental_result_code' declared but never defined
 inline int cxdx_get_experimental_result_code(AAAMessage *msg, int *data);
            ^
cxdx_avp.h:135:12: warning: inline function 'cxdx_get_result_code' declared but never defined
 inline int cxdx_get_result_code(AAAMessage *msg, int *data);
            ^
cxdx_avp.h:128:12: warning: inline function 'cxdx_add_authorization_type' declared but never defined
 inline int cxdx_add_authorization_type(AAAMessage *msg,unsigned int data);
            ^
cxdx_avp.h:120:12: warning: inline function 'cxdx_add_UAR_flags' declared but never defined
 inline int cxdx_add_UAR_flags(AAAMessage *msg, unsigned int sos_reg);
            ^
cxdx_avp.h:112:12: warning: inline function 'cxdx_add_visited_network_id' declared but never defined
 inline int cxdx_add_visited_network_id(AAAMessage *msg,str data);
            ^
cxdx_avp.h:104:12: warning: inline function 'cxdx_add_public_identity' declared but never defined
 inline int cxdx_add_public_identity(AAAMessage *msg,str data);
            ^
cxdx_avp.h:96:12: warning: inline function 'cxdx_add_user_name' declared but never defined
 inline int cxdx_add_user_name(AAAMessage *msg,str data);
            ^
cxdx_avp.h:88:12: warning: inline function 'cxdx_add_auth_session_state' declared but never defined
 inline int cxdx_add_auth_session_state(AAAMessage *msg,unsigned int data);
            ^
cxdx_avp.h:80:12: warning: inline function 'cxdx_add_vendor_specific_appid' declared but never defined
 inline int cxdx_add_vendor_specific_appid(AAAMessage *msg,unsigned int vendor_id,unsigned int auth_id,unsigned int acct_id);
            ^
cxdx_avp.h:70:12: warning: inline function 'cxdx_add_destination_host' declared but never defined
 inline int cxdx_add_destination_host(AAAMessage *msg,str data);
            ^
cxdx_avp.h:62:12: warning: inline function 'cxdx_add_destination_realm' declared but never defined
 inline int cxdx_add_destination_realm(AAAMessage *msg, str data);
            ^
CC (gcc) [M ims_auth.so]		conversion.o
CC (gcc) [M ims_auth.so]		cxdx_mar.o
In file included from cxdx_mar.c:54:0:
authorize.h:187:13: warning: inline function 'start_reg_await_timer' declared but never defined
 inline void start_reg_await_timer(auth_vector *av);
             ^
authorize.h:171:21: warning: inline function 'get_hash_auth' declared but never defined
 inline unsigned int get_hash_auth(str private_identity,str public_identity);
                     ^
authorize.h:158:13: warning: inline function 'auth_data_unlock' declared but never defined
 inline void auth_data_unlock(unsigned int hash);
             ^
authorize.h:157:13: warning: inline function 'auth_data_lock' declared but never defined
 inline void auth_data_lock(unsigned int hash);
             ^
In file included from cxdx_mar.c:51:0:
cxdx_avp.h:282:12: warning: inline function 'cxdx_add_result_code' declared but never defined
 inline int cxdx_add_result_code(AAAMessage *msg,unsigned int data);
            ^
cxdx_avp.h:274:12: warning: inline function 'cxdx_get_user_name' declared but never defined
 inline str cxdx_get_user_name(AAAMessage *msg);
            ^
cxdx_avp.h:267:17: warning: inline function 'cxdx_get_next_public_identity' declared but never defined
 inline AAA_AVP* cxdx_get_next_public_identity(AAAMessage *msg,AAA_AVP* pos,int avp_code,int vendor_id,const char *func);
                 ^
cxdx_avp.h:256:12: warning: inline function 'cxdx_add_userdata_available' declared but never defined
 inline int cxdx_add_userdata_available(AAAMessage *msg,unsigned int data);
            ^
cxdx_avp.h:248:12: warning: inline function 'cxdx_add_server_assignment_type' declared but never defined
 inline int cxdx_add_server_assignment_type(AAAMessage *msg,unsigned int data);
            ^
cxdx_avp.h:240:12: warning: inline function 'cxdx_get_charging_info' declared but never defined
 inline int cxdx_get_charging_info(AAAMessage *msg,str *ccf1,str *ccf2,str *ecf1,str *ecf2);
            ^
cxdx_avp.h:233:12: warning: inline function 'cxdx_get_user_data' declared but never defined
 inline str cxdx_get_user_data(AAAMessage *msg);
            ^
cxdx_avp.h:192:12: warning: inline function 'cxdx_get_sip_number_auth_items' declared but never defined
 inline int cxdx_get_sip_number_auth_items(AAAMessage *msg, int *data);
            ^
cxdx_avp.h:185:12: warning: inline function 'cxdx_add_server_name' declared but never defined
 inline int cxdx_add_server_name(AAAMessage *msg,str data);
            ^
In file included from cxdx_mar.c:51:0:
cxdx_avp.h:177:12: warning: inline function 'cxdx_add_sip_auth_data_item_request' declared but never defined
 inline int cxdx_add_sip_auth_data_item_request(AAAMessage *msg, str auth_scheme, str auth, str username, str realm,str method, str server_name);
            ^
cxdx_avp.h:168:12: warning: inline function 'cxdx_add_sip_number_auth_items' declared but never defined
 inline int cxdx_add_sip_number_auth_items(AAAMessage *msg,unsigned int data);
            ^
cxdx_avp.h:160:12: warning: inline function 'cxdx_get_capabilities' declared but never defined
 inline int cxdx_get_capabilities(AAAMessage *msg,int **m,int *m_cnt,int **o,int *o_cnt, str **p,int *p_cnt);
            ^
cxdx_avp.h:149:12: warning: inline function 'cxdx_get_server_name' declared but never defined
 inline str cxdx_get_server_name(AAAMessage *msg);
            ^
cxdx_avp.h:142:12: warning: inline function 'cxdx_get_experimental_result_code' declared but never defined
 inline int cxdx_get_experimental_result_code(AAAMessage *msg, int *data);
            ^
cxdx_avp.h:135:12: warning: inline function 'cxdx_get_result_code' declared but never defined
 inline int cxdx_get_result_code(AAAMessage *msg, int *data);
            ^
cxdx_avp.h:128:12: warning: inline function 'cxdx_add_authorization_type' declared but never defined
 inline int cxdx_add_authorization_type(AAAMessage *msg,unsigned int data);
            ^
cxdx_avp.h:120:12: warning: inline function 'cxdx_add_UAR_flags' declared but never defined
 inline int cxdx_add_UAR_flags(AAAMessage *msg, unsigned int sos_reg);
            ^
cxdx_avp.h:112:12: warning: inline function 'cxdx_add_visited_network_id' declared but never defined
 inline int cxdx_add_visited_network_id(AAAMessage *msg,str data);
            ^
cxdx_avp.h:104:12: warning: inline function 'cxdx_add_public_identity' declared but never defined
 inline int cxdx_add_public_identity(AAAMessage *msg,str data);
            ^
cxdx_avp.h:96:12: warning: inline function 'cxdx_add_user_name' declared but never defined
 inline int cxdx_add_user_name(AAAMessage *msg,str data);
            ^
cxdx_avp.h:88:12: warning: inline function 'cxdx_add_auth_session_state' declared but never defined
 inline int cxdx_add_auth_session_state(AAAMessage *msg,unsigned int data);
            ^
cxdx_avp.h:80:12: warning: inline function 'cxdx_add_vendor_specific_appid' declared but never defined
 inline int cxdx_add_vendor_specific_appid(AAAMessage *msg,unsigned int vendor_id,unsigned int auth_id,unsigned int acct_id);
            ^
cxdx_avp.h:70:12: warning: inline function 'cxdx_add_destination_host' declared but never defined
 inline int cxdx_add_destination_host(AAAMessage *msg,str data);
            ^
cxdx_avp.h:62:12: warning: inline function 'cxdx_add_destination_realm' declared but never defined
 inline int cxdx_add_destination_realm(AAAMessage *msg, str data);
            ^
CC (gcc) [M ims_auth.so]		stats.o
CC (gcc) [M ims_auth.so]		utils.o
CC (gcc) [L libkcore.so.1.0]		parse_privacy.o
CC (gcc) [L libkcore.so.1.0]		regexp.o
CC (gcc) [L libkcore.so.1.0]		parse_sst.o
CC (gcc) [L libkcore.so.1.0]		strcommon.o
CC (gcc) [L libkcore.so.1.0]		statistics.o
CC (gcc) [L libkcore.so.1.0]		kstats_wrapper.o
CC (gcc) [L libkcore.so.1.0]		cmpapi.o
LD (gcc) [L libkcore.so.1.0]		libkcore.so.1.0
CC (gcc) [L libkamailio_ims.so.0.1]		ims_getters.o
LD (gcc) [L libkamailio_ims.so.0.1]		libkamailio_ims.so.0.1
LD (gcc) [M ims_auth.so]		ims_auth.so
```

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/658
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20160606/f537a605/attachment-0001.html>


More information about the sr-dev mailing list