Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ 9% 8637/93512] target C++: ipacm <= device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Main.cpp
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Main.cpp:154:27: warning: unused parameter 'param' [-Wunused-parameter]
- void* netlink_start(void *param)
- ^
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Main.cpp:175:30: warning: unused parameter 'param' [-Wunused-parameter]
- void* firewall_monitor(void *param)
- ^
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Main.cpp:258:38: warning: unused parameter 'param' [-Wunused-parameter]
- void* ipa_driver_wlan_notifier(void *param)
- ^
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Main.cpp:652:6: warning: unused variable 'cnt' [-Wunused-variable]
- int cnt;
- ^
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Main.cpp:696:18: warning: unused variable 'neigh' [-Wunused-variable]
- IPACM_Neighbor *neigh = new IPACM_Neighbor();
- ^
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Main.cpp:697:22: warning: unused variable 'ifacemgr' [-Wunused-variable]
- IPACM_IfaceManager *ifacemgr = new IPACM_IfaceManager();
- ^
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Main.cpp:703:25: warning: unused variable 'cc' [-Wunused-variable]
- IPACM_ConntrackClient *cc = IPACM_ConntrackClient::GetInstance();
- ^
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Main.cpp:686:14: warning: unused parameter 'argc' [-Wunused-parameter]
- int main(int argc, char **argv)
- ^
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Main.cpp:686:27: warning: unused parameter 'argv' [-Wunused-parameter]
- int main(int argc, char **argv)
- ^
- 9 warnings generated.
- [ 9% 8641/93512] target C++: ipacm <= device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_CmdQueue.cpp
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_CmdQueue.cpp:102:35: warning: unused parameter 'param' [-Wunused-parameter]
- void* MessageQueue::Process(void *param)
- ^
- 1 warning generated.
- [ 9% 8645/93512] target C++: ipacm <= device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:213:13: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
- for(i=0; i<iface_query->num_tx_props; i++)
- ~^~~~~~~~~~~~~~~~~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:272:24: warning: unused variable 'data_wan' [-Wunused-variable]
- ipacm_event_iface_up* data_wan;
- ^
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:503:40: warning: comparison of integers of different signs: 'uint32_t' (aka 'unsigned int') and 'int' [-Wsign-compare]
- if (data_wan_tether->if_index_tether == ipa_if_num)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:532:40: warning: comparison of integers of different signs: 'uint32_t' (aka 'unsigned int') and 'int' [-Wsign-compare]
- if (data_wan_tether->if_index_tether == ipa_if_num)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:561:40: warning: comparison of integers of different signs: 'uint32_t' (aka 'unsigned int') and 'int' [-Wsign-compare]
- if (data_wan_tether->if_index_tether == ipa_if_num)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:581:40: warning: comparison of integers of different signs: 'uint32_t' (aka 'unsigned int') and 'int' [-Wsign-compare]
- if (data_wan_tether->if_index_tether == ipa_if_num)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:1405:17: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
- for(cnt=0; cnt<rx_prop->num_rx_props; cnt++)
- ~~~^~~~~~~~~~~~~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:1546:76: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
- snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:1546:76: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
- printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:1554:76: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
- snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:1554:76: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
- printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:1637:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
- snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:1637:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
- printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:1644:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
- snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:1644:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
- printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:1756:54: warning: use of logical '||' with constant operand [-Wconstant-logical-operand]
- (data->ipv6_addr[2] != 0) || (data->ipv6_addr[3] || 0)) /* check if all 0 not valid ipv6 address */
- ^ ~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:1756:54: note: use '|' for a bitwise operation
- (data->ipv6_addr[2] != 0) || (data->ipv6_addr[3] || 0)) /* check if all 0 not valid ipv6 address */
- ^~
- |
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:2445:11: warning: unused variable 'temp_eth_bridge_flt_rule' [-Wunused-variable]
- uint32_t temp_eth_bridge_flt_rule[IPA_LAN_TO_LAN_MAX_WLAN_CLIENT];
- ^
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:3673:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeader->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
- snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:3673:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeader->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
- printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:3760:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeader->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
- snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:3760:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeader->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
- printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:3611:13: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
- for(i=0; i<tx_prop->num_tx_props; i++)
- ~^~~~~~~~~~~~~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:3699:13: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
- for(i=0; i<tx_prop->num_tx_props; i++)
- ~^~~~~~~~~~~~~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:4714:66: warning: unused parameter 'iptype' [-Wunused-parameter]
- int IPACM_Lan::eth_bridge_add_wlan_guest_ap_flt_rule(ipa_ip_type iptype)
- ^
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:4720:72: warning: unused parameter 'iptype' [-Wunused-parameter]
- int IPACM_Lan::eth_bridge_handle_dummy_usb_client_flt_rule(ipa_ip_type iptype)
- ^
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:5171:73: warning: unused parameter 'iptype' [-Wunused-parameter]
- int IPACM_Lan::eth_bridge_install_cache_usb_client_flt_rule(ipa_ip_type iptype)
- ^
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:5274:12: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
- for(i=0; i<iface_query->num_tx_props; i++)
- ~^~~~~~~~~~~~~~~~~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:5605:32: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
- for (pipe_len = 0; pipe_len < data->dl_dst_pipe_stats_list_len; pipe_len++)
- ~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:5608:20: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
- for (cnt=0; cnt<tx_prop->num_tx_props; cnt++)
- ~~~^~~~~~~~~~~~~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:5611:72: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
- if(ioctl(fd, IPA_IOC_QUERY_EP_MAPPING, tx_prop->tx[cnt].dst_pipe) == data->dl_dst_pipe_stats_list[pipe_len].pipe_index)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:5632:32: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
- for (pipe_len = 0; pipe_len < data->ul_src_pipe_stats_list_len; pipe_len++)
- ~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:5635:21: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
- for (cnt=0; cnt < rx_prop->num_rx_props; cnt++)
- ~~~ ^ ~~~~~~~~~~~~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:5638:72: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
- if(ioctl(fd, IPA_IOC_QUERY_EP_MAPPING, rx_prop->rx[cnt].src_pipe) == data->ul_src_pipe_stats_list[pipe_len].pipe_index)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:5713:21: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
- for (cnt = 0; cnt < tx_prop->num_tx_props; cnt++)
- ~~~ ^ ~~~~~~~~~~~~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:5725:21: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
- for (cnt = 0; cnt < rx_prop->num_rx_props; cnt++)
- ~~~ ^ ~~~~~~~~~~~~~~~~~~~~~
- 35 warnings generated.
- [ 9% 8646/93512] target C++: ipacm <= device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Iface.cpp
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Iface.cpp:237:11: warning: unused variable 'flt_hdl' [-Wunused-variable]
- uint32_t flt_hdl;
- ^
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Iface.cpp:236:14: warning: unused variable 'ip' [-Wunused-variable]
- ipa_ip_type ip;
- ^
- 2 warnings generated.
- [ 9% 8647/93512] target C++: ipacm <= device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:202:24: warning: unused variable 'data_wan' [-Wunused-variable]
- ipacm_event_iface_up* data_wan;
- ^
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:391:40: warning: comparison of integers of different signs: 'uint32_t' (aka 'unsigned int') and 'int' [-Wsign-compare]
- if (data_wan_tether->if_index_tether == ipa_if_num)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:420:40: warning: comparison of integers of different signs: 'uint32_t' (aka 'unsigned int') and 'int' [-Wsign-compare]
- if (data_wan_tether->if_index_tether == ipa_if_num)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:452:40: warning: comparison of integers of different signs: 'uint32_t' (aka 'unsigned int') and 'int' [-Wsign-compare]
- if (data_wan_tether->if_index_tether == ipa_if_num)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:480:40: warning: comparison of integers of different signs: 'uint32_t' (aka 'unsigned int') and 'int' [-Wsign-compare]
- if (data_wan_tether->if_index_tether == ipa_if_num)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:1665:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
- snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:1665:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
- printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:1672:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
- snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:1672:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
- printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:1769:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
- snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:1769:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
- printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:1777:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
- snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:1777:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
- printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:1890:54: warning: use of logical '||' with constant operand [-Wconstant-logical-operand]
- (data->ipv6_addr[2] != 0) || (data->ipv6_addr[3] || 0)) /* check if all 0 not valid ipv6 address */
- ^ ~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:1890:54: note: use '|' for a bitwise operation
- (data->ipv6_addr[2] != 0) || (data->ipv6_addr[3] || 0)) /* check if all 0 not valid ipv6 address */
- ^~
- |
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:2926:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeader->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
- snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:2926:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeader->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
- printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:3044:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeader->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
- snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:3044:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeader->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
- printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:2835:13: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
- for(i=0; i<tx_prop->num_tx_props; i++)
- ~^~~~~~~~~~~~~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:2952:13: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
- for(i=0; i<tx_prop->num_tx_props; i++)
- ~^~~~~~~~~~~~~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:3329:14: warning: unused variable 'res' [-Wunused-variable]
- int i, len, res = IPACM_SUCCESS, offset;
- ^
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:4432:12: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
- for(i=0; i<iface_query->num_tx_props; i++)
- ~^~~~~~~~~~~~~~~~~~~~~~~~~~
- 22 warnings generated.
- [ 9% 8648/93512] target C++: ipacm <= device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:1526:69: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
- snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:1526:69: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
- printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:1618:74: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
- snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:1618:74: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
- printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:2810:18: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
- char *dev_wlan0="wlan0";
- ^
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:2811:18: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
- char *dev_wlan1="wlan1";
- ^
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:2812:17: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
- char *dev_ecm0="ecm0";
- ^
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:2810:8: warning: unused variable 'dev_wlan0' [-Wunused-variable]
- char *dev_wlan0="wlan0";
- ^
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:2812:8: warning: unused variable 'dev_ecm0' [-Wunused-variable]
- char *dev_ecm0="ecm0";
- ^
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:2811:8: warning: unused variable 'dev_wlan1' [-Wunused-variable]
- char *dev_wlan1="wlan1";
- ^
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:3120:21: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
- for (cnt = 0; cnt < ext_prop->num_ext_props; cnt++)
- ~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:4854:76: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
- snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:4854:76: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
- printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:4862:76: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
- snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:4862:76: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
- printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:4941:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
- snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:4941:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
- printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:4948:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
- snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:4948:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
- ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- %zu
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
- printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:5064:54: warning: use of logical '||' with constant operand [-Wconstant-logical-operand]
- (data->ipv6_addr[2] != 0) || (data->ipv6_addr[3] || 0)) /* check if all 0 not valid ipv6 address */
- ^ ~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:5064:54: note: use '|' for a bitwise operation
- (data->ipv6_addr[2] != 0) || (data->ipv6_addr[3] || 0)) /* check if all 0 not valid ipv6 address */
- ^~
- |
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:5303:35: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
- for (int apn_index =0; apn_index < data->apn_data_stats_list_len; apn_index++)
- ~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 21 warnings generated.
- [ 9% 8649/93512] target C++: ipacm <= device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_IfaceManager.cpp
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_IfaceManager.cpp:72:37: warning: missing field 'if_type' initializer [-Wmissing-field-initializers]
- ipacm_ifacemgr_data ifmgr_data = {0};
- ^
- 1 warning generated.
- [ 9% 8650/93512] target C++: ipacm <= device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Netlink.cpp
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Netlink.cpp:610:15: warning: unused variable 'mask_value' [-Wunused-variable]
- int ret_val, mask_value, mask_index, mask_value_v6;
- ^
- 1 warning generated.
- [ 9% 8653/93512] target C++: ipacm <= device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Conntrack_NATApp.cpp
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Conntrack_NATApp.cpp:197:22: warning: equality comparison result unused [-Wunused-comparison]
- cache[cnt].enabled ==false;
- ~~~~~~~~~~~~~~~~~~~^~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Conntrack_NATApp.cpp:197:22: note: use '=' to turn this equality comparison into an assignment
- cache[cnt].enabled ==false;
- ^~
- =
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Conntrack_NATApp.cpp:865:9: warning: variable 'cnt' is uninitialized when used here [-Wuninitialized]
- for(; cnt < max_entries; cnt++)
- ^~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Conntrack_NATApp.cpp:852:9: note: initialize the variable 'cnt' to silence this warning
- int cnt;
- ^
- = 0
- 2 warnings generated.
- [ 9% 8654/93512] target C++: ipacm <= device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_ConntrackClient.cpp
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_ConntrackClient.cpp:97:9: warning: unused parameter 'data' [-Wunused-parameter]
- void *data
- ^
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_ConntrackClient.cpp:175:4: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- strlen(IPACM_Iface::ipacmcfg->ipa_virtual_iface_name));
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
- snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_ConntrackClient.cpp:175:4: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
- strlen(IPACM_Iface::ipacmcfg->ipa_virtual_iface_name));
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
- printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
- ^~~~~~~~~~~
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_ConntrackClient.cpp:383:57: warning: unused parameter 'ptr' [-Wunused-parameter]
- void* IPACM_ConntrackClient::UDPConnTimeoutUpdate(void *ptr)
- ^
- 4 warnings generated.
- [ 9% 8655/93512] target C++: ipacm <= device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_ConntrackListener.cpp
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_ConntrackListener.cpp:471:29: warning: unused variable 'secmark' [-Wunused-variable]
- uint32_t status, timeout, secmark;
- ^
- 1 warning generated.
- [ 9% 8656/93512] target C++: ipacm <= device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Log.cpp
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Log.cpp:53:21: warning: unused parameter 'log_level' [-Wunused-parameter]
- void logmessage(int log_level)
- ^
- device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Log.cpp:62:50: warning: comparison of integers of different signs: 'unsigned int' and 'int' [-Wsign-compare]
- if ((*sockfd = socket(AF_UNIX, SOCK_DGRAM, 0)) == IPACM_FAILURE)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~
- 2 warnings generated.
Advertisement
Add Comment
Please, Sign In to add comment