Hello,
I am using sample code (SDK 1.7) for test code,
but i have always problem and made a error .
for example I am using "example_tcpclient.c " and i get error:
ril/src/ril_atResponse.c: In function ‘Ql_RIL_AT_SetErrCode’:
ril/src/ril_atResponse.c:50:1: warning: control reaches end of non-void function [-Wreturn-type]
ril/src/ril_audio.c: In function ‘ATResponse_AUD_handler’:
ril/src/ril_audio.c:398:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
ril/src/ril_ble.c: In function ‘RIL_BT_Gatsreg’:
ril/src/ril_ble.c:120:9: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
ril/src/ril_ble.c: In function ‘RIL_BT_Gatss’:
ril/src/ril_ble.c:168:10: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
ril/src/ril_ble.c: In function ‘RIL_BT_Gatsc’:
ril/src/ril_ble.c:245:9: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
ril/src/ril_ble.c: In function ‘RIL_BT_Gatsd’:
ril/src/ril_ble.c:311:9: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
ril/src/ril_ble.c: In function ‘RIL_BT_Gatsst’:
ril/src/ril_ble.c:381:9: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
ril/src/ril_ble.c: In function ‘RIL_BT_Gatsind’:
ril/src/ril_ble.c:461:9: warning: unused variable ‘result’ [-Wunused-variable]
ril/src/ril_ble.c: In function ‘RIL_BT_Gatsrsp’:
ril/src/ril_ble.c:513:9: warning: unused variable ‘result’ [-Wunused-variable]
ril/src/ril_ble.c: In function ‘RIL_BT_Gatsl’:
ril/src/ril_ble.c:559:9: warning: unused variable ‘result’ [-Wunused-variable]
ril/src/ril_ble.c: In function ‘RIL_BT_SetLeTxPwr’:
ril/src/ril_ble.c:597:9: warning: unused variable ‘result’ [-Wunused-variable]
ril/src/ril_ble.c: In function ‘OnURCHandler_BTGatscon’:
ril/src/ril_ble.c:832:9: warning: unused variable ‘err_code’ [-Wunused-variable]
ril/src/ril_ble.c: In function ‘RIL_BT_GetLeLocalAddr’:
ril/src/ril_ble.c:891:5: warning: passing argument 3 of ‘Ql_RIL_SendATCmd’ from incompatible pointer type [enabled by default]
In file included from ril/src/ril_ble.c:45:0:
ril/inc/ril.h:163:12: note: expected ‘Callback_ATResponse’ but argument is of type ‘void (*)(char *, u32, void *)’
ril/src/ril_ble.c: In function ‘OnURCHandler_BTGatwreq’:
ril/src/ril_ble.c:914:9: warning: unused variable ‘err_code’ [-Wunused-variable]
ril/src/ril_ble.c: In function ‘OnURCHandler_BTGatewreq’:
ril/src/ril_ble.c:946:9: warning: unused variable ‘err_code’ [-Wunused-variable]
ril/src/ril_ble.c: In function ‘OnURCHandler_BTGatrreq’:
ril/src/ril_ble.c:976:9: warning: unused variable ‘err_code’ [-Wunused-variable]
ril/src/ril_ble.c: In function ‘OnURCHandler_BTpxpscon’:
ril/src/ril_ble.c:1005:9: warning: unused variable ‘err_code’ [-Wunused-variable]
ril/src/ril_ble.c: In function ‘OnURCHandler_BTfmpscon’:
ril/src/ril_ble.c:1027:9: warning: unused variable ‘err_code’ [-Wunused-variable]
ril/src/ril_ble.c: In function ‘ATRsp_QBTLEADDR_Hdlr’:
ril/src/ril_ble.c:1411:3: warning: ‘return’ with a value, in function returning void [enabled by default]
ril/src/ril_ble.c:1417:5: warning: ‘return’ with a value, in function returning void [enabled by default]
ril/src/ril_ble.c:1423:3: warning: ‘return’ with a value, in function returning void [enabled by default]
ril/src/ril_ble.c:1428:3: warning: ‘return’ with a value, in function returning void [enabled by default]
ril/src/ril_ble.c:1431:2: warning: ‘return’ with a value, in function returning void [enabled by default]
ril/src/ril_ble.c: At top level:
ril/src/ril_ble.c:53:12: warning: ‘ATRsp_QBTGatsi_Hdlr’ declared ‘static’ but never defined [-Wunused-function]
ril/src/ril_ble_clinet.c: In function ‘RIL_BT_Gatcreg’:
ril/src/ril_ble_clinet.c:96:9: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
ril/src/ril_ble_clinet.c: In function ‘RIL_BT_Gatcscan’:
ril/src/ril_ble_clinet.c:122:9: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
ril/src/ril_ble_clinet.c: In function ‘RIL_BT_Gatccon’:
ril/src/ril_ble_clinet.c:152:9: warning: unused variable ‘ret’ [-Wunused-variable]
ril/src/ril_ble_clinet.c: In function ‘RIL_BT_Gatcss’:
ril/src/ril_ble_clinet.c:222:9: warning: unused variable ‘ret’ [-Wunused-variable]
ril/src/ril_ble_clinet.c: In function ‘RIL_BT_Gatcgc’:
ril/src/ril_ble_clinet.c:240:9: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
ril/src/ril_ble_clinet.c: In function ‘RIL_BT_Gatcgd’:
ril/src/ril_ble_clinet.c:278:9: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
ril/src/ril_ble_clinet.c: In function ‘RIL_BT_Gatcrc’:
ril/src/ril_ble_clinet.c:314:9: warning: unused variable ‘ret’ [-Wunused-variable]
ril/src/ril_ble_clinet.c: In function ‘RIL_BT_Gatcwc’:
ril/src/ril_ble_clinet.c:342:9: warning: unused variable ‘ret’ [-Wunused-variable]
ril/src/ril_ble_clinet.c: In function ‘RIL_BT_Gatcwd’:
ril/src/ril_ble_clinet.c:371:9: warning: unused variable ‘ret’ [-Wunused-variable]
ril/src/ril_ble_clinet.c: In function ‘RIL_BT_Gatcrd’:
ril/src/ril_ble_clinet.c:402:9: warning: unused variable ‘ret’ [-Wunused-variable]
ril/src/ril_ble_clinet.c: In function ‘RIL_BT_Gatcrn’:
ril/src/ril_ble_clinet.c:430:9: warning: unused variable ‘ret’ [-Wunused-variable]
ril/src/ril_ble_clinet.c: In function ‘RIL_BT_Gatcgdt’:
ril/src/ril_ble_clinet.c:454:13: warning: unused variable ‘n’ [-Wunused-variable]
ril/src/ril_ble_clinet.c:454:9: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
ril/src/ril_ble_clinet.c: In function ‘RIL_BT_Gatcl’:
ril/src/ril_ble_clinet.c:473:9: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
ril/src/ril_ble_clinet.c: In function ‘OnURCHandler_BTGatcscan’:
ril/src/ril_ble_clinet.c:495:9: warning: unused variable ‘err_code’ [-Wunused-variable]
ril/src/ril_ble_clinet.c: In function ‘OnURCHandler_BTGatccon’:
ril/src/ril_ble_clinet.c:529:9: warning: unused variable ‘err_code’ [-Wunused-variable]
ril/src/ril_ble_clinet.c: In function ‘OnURCHandler_BTGatcss’:
ril/src/ril_ble_clinet.c:559:9: warning: unused variable ‘err_code’ [-Wunused-variable]
ril/src/ril_ble_clinet.c: In function ‘OnURCHandler_BTGatcgc’:
ril/src/ril_ble_clinet.c:610:5: warning: pointer targets in passing argument 1 of ‘Ql_strcpy’ differ in signedness [-Wpointer-sign]
In file included from ril/src/ril_ble_clinet.c:40:0:
include/ql_stdlib.h:47:7: note: expected ‘char *’ but argument is of type ‘u8 *’
ril/src/ril_ble_clinet.c:611:5: warning: pointer targets in passing argument 2 of ‘Ql_StrPrefixMatch’ differ in signedness [-Wpointer-sign]
In file included from ril/src/ril_ble_clinet.c:46:0:
ril/inc/ril_util.h:47:13: note: expected ‘const char *’ but argument is of type ‘u8 *’
ril/src/ril_ble_clinet.c:622:9: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
ril/src/ril_ble_clinet.c:622:36: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
ril/src/ril_ble_clinet.c:622:9: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
ril/src/ril_ble_clinet.c:622:9: note: expected ‘const char *’ but argument is of type ‘u8 *’
ril/src/ril_ble_clinet.c:603:9: warning: unused variable ‘err_code’ [-Wunused-variable]
ril/src/ril_ble_clinet.c: In function ‘OnURCHandler_BTGatcgd’:
ril/src/ril_ble_clinet.c:639:5: warning: pointer targets in passing argument 1 of ‘Ql_strcpy’ differ in signedness [-Wpointer-sign]
In file included from ril/src/ril_ble_clinet.c:40:0:
include/ql_stdlib.h:47:7: note: expected ‘char *’ but argument is of type ‘u8 *’
ril/src/ril_ble_clinet.c:640:5: warning: pointer targets in passing argument 2 of ‘Ql_StrPrefixMatch’ differ in signedness [-Wpointer-sign]
In file included from ril/src/ril_ble_clinet.c:46:0:
ril/inc/ril_util.h:47:13: note: expected ‘const char *’ but argument is of type ‘u8 *’
ril/src/ril_ble_clinet.c:633:9: warning: unused variable ‘err_code’ [-Wunused-variable]
ril/src/ril_ble_clinet.c: In function ‘OnURCHandler_BTGatcrc’:
ril/src/ril_ble_clinet.c:668:5: warning: pointer targets in passing argument 1 of ‘Ql_strcpy’ differ in signedness [-Wpointer-sign]
In file included from ril/src/ril_ble_clinet.c:40:0:
include/ql_stdlib.h:47:7: note: expected ‘char *’ but argument is of type ‘u8 *’
ril/src/ril_ble_clinet.c:669:5: warning: pointer targets in passing argument 2 of ‘Ql_StrPrefixMatch’ differ in signedness [-Wpointer-sign]
In file included from ril/src/ril_ble_clinet.c:46:0:
ril/inc/ril_util.h:47:13: note: expected ‘const char *’ but argument is of type ‘u8 *’
ril/src/ril_ble_clinet.c:662:9: warning: unused variable ‘err_code’ [-Wunused-variable]
ril/src/ril_ble_clinet.c: In function ‘OnURCHandler_BTGatcrd’:
ril/src/ril_ble_clinet.c:693:5: warning: pointer targets in passing argument 1 of ‘Ql_strcpy’ differ in signedness [-Wpointer-sign]
In file included from ril/src/ril_ble_clinet.c:40:0:
include/ql_stdlib.h:47:7: note: expected ‘char *’ but argument is of type ‘u8 *’
ril/src/ril_ble_clinet.c:694:5: warning: pointer targets in passing argument 2 of ‘Ql_StrPrefixMatch’ differ in signedness [-Wpointer-sign]
In file included from ril/src/ril_ble_clinet.c:46:0:
ril/inc/ril_util.h:47:13: note: expected ‘const char *’ but argument is of type ‘u8 *’
ril/src/ril_ble_clinet.c:687:9: warning: unused variable ‘err_code’ [-Wunused-variable]
ril/src/ril_ble_clinet.c: In function ‘OnURCHandler_BTGatcn’:
ril/src/ril_ble_clinet.c:719:5: warning: pointer targets in passing argument 1 of ‘Ql_strcpy’ differ in signedness [-Wpointer-sign]
In file included from ril/src/ril_ble_clinet.c:40:0:
include/ql_stdlib.h:47:7: note: expected ‘char *’ but argument is of type ‘u8 *’
ril/src/ril_ble_clinet.c:720:5: warning: pointer targets in passing argument 2 of ‘Ql_StrPrefixMatch’ differ in signedness [-Wpointer-sign]
In file included from ril/src/ril_ble_clinet.c:46:0:
ril/inc/ril_util.h:47:13: note: expected ‘const char *’ but argument is of type ‘u8 *’
ril/src/ril_ble_clinet.c:713:9: warning: unused variable ‘err_code’ [-Wunused-variable]
ril/src/ril_ble_clinet.c: In function ‘ATRsp_QBTGatcrn_Hdlr’:
ril/src/ril_ble_clinet.c:825:7: warning: unused variable ‘used’ [-Wunused-variable]
ril/src/ril_ble_clinet.c:824:5: warning: unused variable ‘result’ [-Wunused-variable]
ril/src/ril_ble_clinet.c:823:6: warning: unused variable ‘char_prop’ [-Wunused-variable]
ril/src/ril_ble_clinet.c:822:8: warning: unused variable ‘char_uuid’ [-Wunused-variable]
ril/src/ril_ble_clinet.c:821:9: warning: unused variable ‘char_inst’ [-Wunused-variable]
ril/src/ril_ble_clinet.c:820:6: warning: unused variable ‘is_primary’ [-Wunused-variable]
ril/src/ril_ble_clinet.c:819:6: warning: unused variable ‘service_inst’ [-Wunused-variable]
ril/src/ril_ble_clinet.c:818:5: warning: unused variable ‘service_uuid’ [-Wunused-variable]
ril/src/ril_ble_clinet.c:817:6: warning: unused variable ‘conn_id’ [-Wunused-variable]
ril/src/ril_ble_clinet.c:816:7: warning: unused variable ‘client_id’ [-Wunused-variable]
ril/src/ril_ble_clinet.c:853:1: warning: control reaches end of non-void function [-Wreturn-type]
ril/src/ril_bluetooth.c: In function ‘OnURCHandler_BTDisconn’:
ril/src/ril_bluetooth.c:1531:10: warning: unused variable ‘profileId’ [-Wunused-variable]
ril/src/ril_gps.c: In function ‘RIL_GPS_Read’:
ril/src/ril_gps.c:145:5: warning: pointer targets in passing argument 1 of ‘Ql_strlen’ differ in signedness [-Wpointer-sign]
In file included from ril/src/ril_gps.c:36:0:
include/ql_stdlib.h:54:7: note: expected ‘const char *’ but argument is of type ‘u8 *’
ril/src/ril_gps.c:145:5: warning: pointer targets in passing argument 1 of ‘Ql_strncmp’ differ in signedness [-Wpointer-sign]
In file included from ril/src/ril_gps.c:36:0:
include/ql_stdlib.h:52:7: note: expected ‘const char *’ but argument is of type ‘u8 *’
ril/src/ril_gps.c:158:9: warning: pointer targets in passing argument 2 of ‘Ql_strcpy’ differ in signedness [-Wpointer-sign]
In file included from ril/src/ril_gps.c:36:0:
include/ql_stdlib.h:47:7: note: expected ‘const char *’ but argument is of type ‘u8 *’
ril/src/ril_gps.c: In function ‘ATResponse_GPSRead_Hdlr’:
ril/src/ril_gps.c:169:7: warning: unused variable ‘strTmp’ [-Wunused-variable]
ril/src/ril_gps.c:167:8: warning: unused variable ‘p2’ [-Wunused-variable]
ril/src/ril_gps.c:166:8: warning: unused variable ‘p1’ [-Wunused-variable]
ril/src/ril_gps.c: In function ‘OnURCHandler_GPSCMD’:
ril/src/ril_gps.c:336:4: warning: passing argument 1 of ‘callback_GPSCMD’ discards ‘const’ qualifier from pointer target type [enabled by default]
ril/src/ril_gps.c:336:4: note: expected ‘char *’ but argument is of type ‘const char *’
ril/src/ril_location.c: In function ‘ATResponse_GetLocation_Ex_Handler’:
ril/src/ril_location.c:78:11: warning: unused variable ‘p2’ [-Wunused-variable]
ril/src/ril_location.c:77:11: warning: unused variable ‘p1’ [-Wunused-variable]
ril/src/ril_location.c: In function ‘OnURCHandler_QCELLLocation’:
ril/src/ril_location.c:176:11: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
ril/src/ril_location.c:177:9: warning: pointer targets in passing argument 1 of ‘Ql_strstr’ differ in signedness [-Wpointer-sign]
In file included from ril/src/ril_location.c:38:0:
include/ql_stdlib.h:55:7: note: expected ‘const char *’ but argument is of type ‘u8 *’
ril/src/ril_network.c: In function ‘ATRsp_COPS_Handler’:
ril/src/ril_network.c:501:14: warning: unused variable ‘str’ [-Wunused-variable]
ril/src/ril_ntp.c: In function ‘OnURCHandler_NTPCMD’:
ril/src/ril_ntp.c:50:4: warning: passing argument 1 of ‘callback_NTPCMD’ discards ‘const’ qualifier from pointer target type [enabled by default]
ril/src/ril_ntp.c:50:4: note: expected ‘char *’ but argument is of type ‘const char *’
example/example_tcpclient.c: In function ‘proc_main_task’:
example/example_tcpclient.c:216:9: warning: unused variable ‘ret’ [-Wunused-variable]
example/example_tcpclient.c: In function ‘CallBack_UART_Hdlr’:
example/example_tcpclient.c:264:16: warning: pointer targets in passing argument 1 of ‘proc_handle’ differ in signedness [-Wpointer-sign]
example/example_tcpclient.c:210:13: note: expected ‘char *’ but argument is of type ‘u8 *’
example/example_tcpclient.c: In function ‘proc_handle’:
example/example_tcpclient.c:313:9: warning: pointer targets in passing argument 1 of ‘Analyse_Command’ differ in signedness [-Wpointer-sign]
example/example_tcpclient.c:208:12: note: expected ‘u8 *’ but argument is of type ‘char *’
example/example_tcpclient.c:319:9: warning: pointer targets in passing argument 1 of ‘Analyse_Command’ differ in signedness [-Wpointer-sign]
example/example_tcpclient.c:208:12: note: expected ‘u8 *’ but argument is of type ‘char *’
example/example_tcpclient.c:325:9: warning: pointer targets in passing argument 1 of ‘Analyse_Command’ differ in signedness [-Wpointer-sign]
example/example_tcpclient.c:208:12: note: expected ‘u8 *’ but argument is of type ‘char *’
example/example_tcpclient.c:341:9: warning: pointer targets in passing argument 1 of ‘Analyse_Command’ differ in signedness [-Wpointer-sign]
example/example_tcpclient.c:208:12: note: expected ‘u8 *’ but argument is of type ‘char *’
example/example_tcpclient.c:347:9: warning: pointer targets in passing argument 1 of ‘Analyse_Command’ differ in signedness [-Wpointer-sign]
example/example_tcpclient.c:208:12: note: expected ‘u8 *’ but argument is of type ‘char *’
example/example_tcpclient.c:352:9: warning: pointer targets in passing argument 1 of ‘Ql_atoi’ differ in signedness [-Wpointer-sign]
In file included from example/example_tcpclient.c:58:0:
include/ql_stdlib.h:41:8: note: expected ‘const char *’ but argument is of type ‘u8 *’
example/example_tcpclient.c:362:19: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
example/example_tcpclient.c:305:9: warning: unused variable ‘iret’ [-Wunused-variable]
example/example_tcpclient.c: In function ‘Callback_Timer’:
example/example_tcpclient.c:456:17: warning: pointer targets in passing argument 1 of ‘Ql_strcpy’ differ in signedness [-Wpointer-sign]
In file included from example/example_tcpclient.c:58:0:
include/ql_stdlib.h:47:7: note: expected ‘char *’ but argument is of type ‘u8 *’
example/example_tcpclient.c:456:17: warning: pointer targets in passing argument 2 of ‘Ql_strcpy’ differ in signedness [-Wpointer-sign]
In file included from example/example_tcpclient.c:58:0:
include/ql_stdlib.h:47:7: note: expected ‘const char *’ but argument is of type ‘u8 *’
example/example_tcpclient.c:457:17: warning: pointer targets in passing argument 1 of ‘Ql_strcpy’ differ in signedness [-Wpointer-sign]
In file included from example/example_tcpclient.c:58:0:
include/ql_stdlib.h:47:7: note: expected ‘char *’ but argument is of type ‘u8 *’
example/example_tcpclient.c:457:17: warning: pointer targets in passing argument 2 of ‘Ql_strcpy’ differ in signedness [-Wpointer-sign]
In file included from example/example_tcpclient.c:58:0:
include/ql_stdlib.h:47:7: note: expected ‘const char *’ but argument is of type ‘u8 *’
example/example_tcpclient.c:458:17: warning: pointer targets in passing argument 1 of ‘Ql_strcpy’ differ in signedness [-Wpointer-sign]
In file included from example/example_tcpclient.c:58:0:
include/ql_stdlib.h:47:7: note: expected ‘char *’ but argument is of type ‘u8 *’
example/example_tcpclient.c:458:17: warning: pointer targets in passing argument 2 of ‘Ql_strcpy’ differ in signedness [-Wpointer-sign]
In file included from example/example_tcpclient.c:58:0:
include/ql_stdlib.h:47:7: note: expected ‘const char *’ but argument is of type ‘u8 *’
example/example_tcpclient.c:631:17: warning: pointer targets in passing argument 1 of ‘Ql_strlen’ differ in signedness [-Wpointer-sign]
In file included from example/example_tcpclient.c:58:0:
include/ql_stdlib.h:54:7: note: expected ‘const char *’ but argument is of type ‘u8 *’
example/example_tcpclient.c:638:21: warning: pointer targets in passing argument 2 of ‘Ql_SOC_Send’ differ in signedness [-Wpointer-sign]
In file included from example/example_tcpclient.c:66:0:
include/ql_socket.h:265:7: note: expected ‘u8 *’ but argument is of type ‘char *’
example/example_tcpclient.c: In function ‘callback_socket_write’:
example/example_tcpclient.c:881:9: warning: pointer targets in passing argument 2 of ‘Ql_SOC_Send’ differ in signedness [-Wpointer-sign]
In file included from example/example_tcpclient.c:66:0:
include/ql_socket.h:265:7: note: expected ‘u8 *’ but argument is of type ‘char *’
example/example_tcpclient.c:865:11: warning: ‘ret’ may be used uninitialized in this function [-Wuninitialized]
example/nema_pro.c: In function ‘read_gps_I2C_buffer’:
example/nema_pro.c:172:9: warning: unused variable ‘realwrlen’ [-Wunused-variable]
example/nema_pro.c: In function ‘extract_nmea’:
example/nema_pro.c:192:5: warning: unused variable ‘nmea_buf’ [-Wunused-variable]
example/nema_pro.c:191:9: warning: unused variable ‘realwrlen’ [-Wunused-variable]
example/nema_pro.c: In function ‘iop_inst_avail’:
example/nema_pro.c:285:21: warning: operation on ‘id_que_tail’ may be undefined [-Wsequence-point]
example/nema_pro.c: In function ‘iop_get_inst’:
example/nema_pro.c:323:13: warning: operation on ‘idx’ may be undefined [-Wsequence-point]
example/nema_pro.c: In function ‘iop_pcrx_nmea’:
example/nema_pro.c:355:25: warning: operation on ‘id_que_head’ may be undefined [-Wsequence-point]
example/nema_pro.c:360:29: warning: operation on ‘id_que_tail’ may be undefined [-Wsequence-point]
example/nema_pro.c:381:29: warning: operation on ‘rx_que_head’ may be undefined [-Wsequence-point]
example/nema_pro.c:387:29: warning: operation on ‘rx_que_head’ may be undefined [-Wsequence-point]
example/nema_pro.c:407:25: warning: operation on ‘rx_que_head’ may be undefined [-Wsequence-point]
example/utility.c: In function ‘Check_Separator’:
example/utility.c:45:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
example/utility.c:52:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
example/utility.c:59:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
example/utility.c:42:11: warning: unused variable ‘pChar2’ [-Wunused-variable]
example/utility.c: In function ‘Analyse_Command’:
example/utility.c:103:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
example/utility.c:120:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
custom/main.c: In function ‘proc_main_task’:
custom/main.c:216:9: warning: unused variable ‘ret’ [-Wunused-variable]
custom/main.c: In function ‘CallBack_UART_Hdlr’:
custom/main.c:264:16: warning: pointer targets in passing argument 1 of ‘proc_handle’ differ in signedness [-Wpointer-sign]
custom/main.c:210:13: note: expected ‘char *’ but argument is of type ‘u8 *’
custom/main.c: In function ‘proc_handle’:
custom/main.c:313:9: warning: pointer targets in passing argument 1 of ‘Analyse_Command’ differ in signedness [-Wpointer-sign]
custom/main.c:208:12: note: expected ‘u8 *’ but argument is of type ‘char *’
custom/main.c:319:9: warning: pointer targets in passing argument 1 of ‘Analyse_Command’ differ in signedness [-Wpointer-sign]
custom/main.c:208:12: note: expected ‘u8 *’ but argument is of type ‘char *’
custom/main.c:325:9: warning: pointer targets in passing argument 1 of ‘Analyse_Command’ differ in signedness [-Wpointer-sign]
custom/main.c:208:12: note: expected ‘u8 *’ but argument is of type ‘char *’
custom/main.c:341:9: warning: pointer targets in passing argument 1 of ‘Analyse_Command’ differ in signedness [-Wpointer-sign]
custom/main.c:208:12: note: expected ‘u8 *’ but argument is of type ‘char *’
custom/main.c:347:9: warning: pointer targets in passing argument 1 of ‘Analyse_Command’ differ in signedness [-Wpointer-sign]
custom/main.c:208:12: note: expected ‘u8 *’ but argument is of type ‘char *’
custom/main.c:352:9: warning: pointer targets in passing argument 1 of ‘Ql_atoi’ differ in signedness [-Wpointer-sign]
In file included from custom/main.c:58:0:
include/ql_stdlib.h:41:8: note: expected ‘const char *’ but argument is of type ‘u8 *’
custom/main.c:362:19: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
custom/main.c:305:9: warning: unused variable ‘iret’ [-Wunused-variable]
custom/main.c: In function ‘Callback_Timer’:
custom/main.c:456:17: warning: pointer targets in passing argument 1 of ‘Ql_strcpy’ differ in signedness [-Wpointer-sign]
In file included from custom/main.c:58:0:
include/ql_stdlib.h:47:7: note: expected ‘char *’ but argument is of type ‘u8 *’
custom/main.c:456:17: warning: pointer targets in passing argument 2 of ‘Ql_strcpy’ differ in signedness [-Wpointer-sign]
In file included from custom/main.c:58:0:
include/ql_stdlib.h:47:7: note: expected ‘const char *’ but argument is of type ‘u8 *’
custom/main.c:457:17: warning: pointer targets in passing argument 1 of ‘Ql_strcpy’ differ in signedness [-Wpointer-sign]
In file included from custom/main.c:58:0:
include/ql_stdlib.h:47:7: note: expected ‘char *’ but argument is of type ‘u8 *’
custom/main.c:457:17: warning: pointer targets in passing argument 2 of ‘Ql_strcpy’ differ in signedness [-Wpointer-sign]
In file included from custom/main.c:58:0:
include/ql_stdlib.h:47:7: note: expected ‘const char *’ but argument is of type ‘u8 *’
custom/main.c:458:17: warning: pointer targets in passing argument 1 of ‘Ql_strcpy’ differ in signedness [-Wpointer-sign]
In file included from custom/main.c:58:0:
include/ql_stdlib.h:47:7: note: expected ‘char *’ but argument is of type ‘u8 *’
custom/main.c:458:17: warning: pointer targets in passing argument 2 of ‘Ql_strcpy’ differ in signedness [-Wpointer-sign]
In file included from custom/main.c:58:0:
include/ql_stdlib.h:47:7: note: expected ‘const char *’ but argument is of type ‘u8 *’
custom/main.c:631:17: warning: pointer targets in passing argument 1 of ‘Ql_strlen’ differ in signedness [-Wpointer-sign]
In file included from custom/main.c:58:0:
include/ql_stdlib.h:54:7: note: expected ‘const char *’ but argument is of type ‘u8 *’
custom/main.c:638:21: warning: pointer targets in passing argument 2 of ‘Ql_SOC_Send’ differ in signedness [-Wpointer-sign]
In file included from custom/main.c:66:0:
include/ql_socket.h:265:7: note: expected ‘u8 *’ but argument is of type ‘char *’
custom/main.c: In function ‘callback_socket_write’:
custom/main.c:881:9: warning: pointer targets in passing argument 2 of ‘Ql_SOC_Send’ differ in signedness [-Wpointer-sign]
In file included from custom/main.c:66:0:
include/ql_socket.h:265:7: note: expected ‘u8 *’ but argument is of type ‘char *’
custom/main.c:865:11: warning: ‘ret’ may be used uninitialized in this function [-Wuninitialized]
custom/fota/src/fota_ftp.c: In function ‘FTP_FotaMain’:
custom/fota/src/fota_ftp.c:44:9: warning: variable ‘retValue’ set but not used [-Wunused-but-set-variable]
custom/fota/src/fota_ftp.c: In function ‘FTP_Callback_OnDownload’:
custom/fota/src/fota_ftp.c:83:10: warning: variable ‘retValue’ set but not used [-Wunused-but-set-variable]
custom/fota/src/fota_ftp.c:82:9: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
custom/fota/src/fota_ftp.c: In function ‘FTP_Program’:
custom/fota/src/fota_ftp.c:124:10: warning: variable ‘retValue’ set but not used [-Wunused-but-set-variable]
custom/fota/src/fota_ftp.c: In function ‘FTP_Callback_OnDownload’:
custom/fota/src/fota_ftp.c:315:35: warning: ‘retValue’ may be used uninitialized in this function [-Wmaybe-uninitialized]
custom/fota/src/fota_ftp.c:198:10: note: ‘retValue’ was declared here
custom/fota/src/fota_main.c: In function ‘Ql_FOTA_StartUpgrade’:
custom/fota/src/fota_main.c:33:10: warning: variable ‘retValue’ set but not used [-Wunused-but-set-variable]
build\gcc\obj/custom/main.o: In function callback_socket_accept': main.c:(.text.callback_socket_accept+0x0): multiple definition of
callback_socket_accept’
build\gcc\obj/example/example_tcpclient.o:example_tcpclient.c:(.text.callback_socket_accept+0x0): first defined here
build\gcc\obj/custom/main.o: In function callback_socket_close': main.c:(.text.callback_socket_close+0x0): multiple definition of
callback_socket_close’
build\gcc\obj/example/example_tcpclient.o:example_tcpclient.c:(.text.callback_socket_close+0x0): first defined here
build\gcc\obj/custom/main.o: In function callback_socket_write': main.c:(.text.callback_socket_write+0x0): multiple definition of
callback_socket_write’
build\gcc\obj/example/example_tcpclient.o:example_tcpclient.c:(.text.callback_socket_write+0x0): first defined here
build\gcc\obj/custom/main.o: In function callback_socket_read': main.c:(.text.callback_socket_read+0x0): multiple definition of
callback_socket_read’
build\gcc\obj/example/example_tcpclient.o:example_tcpclient.c:(.text.callback_socket_read+0x0): first defined here
build\gcc\obj/custom/main.o: In function Callback_GetIpByName': main.c:(.text.Callback_GetIpByName+0x0): multiple definition of
Callback_GetIpByName’
build\gcc\obj/example/example_tcpclient.o:example_tcpclient.c:(.text.Callback_GetIpByName+0x0): first defined here
build\gcc\obj/custom/main.o: In function CallBack_GPRS_Deactived': main.c:(.text.CallBack_GPRS_Deactived+0x0): multiple definition of
CallBack_GPRS_Deactived’
build\gcc\obj/example/example_tcpclient.o:example_tcpclient.c:(.text.CallBack_GPRS_Deactived+0x0): first defined here
build\gcc\obj/custom/main.o: In function Callback_GPRS_Actived': main.c:(.text.Callback_GPRS_Actived+0x0): multiple definition of
Callback_GPRS_Actived’
build\gcc\obj/example/example_tcpclient.o:example_tcpclient.c:(.text.Callback_GPRS_Actived+0x0): first defined here
build\gcc\obj/custom/main.o: In function callback_socket_connect': main.c:(.text.callback_socket_connect+0x0): multiple definition of
callback_socket_connect’
build\gcc\obj/example/example_tcpclient.o:example_tcpclient.c:(.text.callback_socket_connect+0x0): first defined here
build\gcc\obj/custom/main.o: In function proc_main_task': main.c:(.text.proc_main_task+0x0): multiple definition of
proc_main_task’
build\gcc\obj/example/example_tcpclient.o:example_tcpclient.c:(.text.proc_main_task+0x0): first defined here
build\gcc\obj/custom/main.o:(.data+0xd4): multiple definition of callback_soc_func' build\gcc\obj/example/example_tcpclient.o:(.data+0xd4): first defined here build\gcc\obj/custom/main.o:(.data+0x4): multiple definition of
callback_gprs_func’
build\gcc\obj/example/example_tcpclient.o:(.data+0x4): first defined here
make.exe[1]: *** [build\gcc/APPGS3MDM32A01.elf] Error 1
make: *** [all] Error 2
Whats wrong?