我在编译出厂自带的综合例程时,出现了好多警告基本都是 warning: #223-D: function "strstr" declared implicitly的警告,对于新手来说例程出现这种是不允许,还大神解释一下
..\..\User\stm32f10x_it.c(327): warning: #223-D: function "strstr" declared implicitly
ucTcpClosedFlag = strstr(strEsp8266_Fram_Record .Data_RX_BUF, "CLOSED\r\n" ) ? 1 : 0;
..\..\User\stm32f10x_it.c: 1 warning, 0 errors
assembling cpu_a.asm...
compiling cpu_c.c...
compiling cpu_core.c...
assembling lib_mem_a.asm...
compiling lib_ascii.c...
compiling lib_math.c...
compiling lib_mem.c...
compiling lib_str.c...
..\..\uCOS-III\uC-LIB\lib_str.c(3497): warning: C4017W: nbr_neg_fmtd may be used before being set
CPU_BOOLEAN nbr_neg_fmtd;
..\..\uCOS-III\uC-LIB\lib_str.c(3494): warning: C4017W: lead_char_0 may be used before being set
CPU_BOOLEAN lead_char_0;
..\..\uCOS-III\uC-LIB\lib_str.c(3487): warning: C4017W: nbr_dig_fmtd may be used before being set
CPU_INT08U nbr_dig_fmtd;
..\..\uCOS-III\uC-LIB\lib_str.c(3483): warning: C4017W: nbr_fmt may be used before being set
CPU_INT32U nbr_fmt;
..\..\uCOS-III\uC-LIB\lib_str.c: 4 warnings, 0 errors
compiling os_cfg_app.c...
compiling os_core.c...
compiling os_dbg.c...
compiling os_flag.c...
compiling os_int.c...
compiling os_mem.c...
compiling os_msg.c...
compiling os_mutex.c...
compiling os_pend_multi.c...
compiling os_prio.c...
compiling os_q.c...
compiling os_sem.c...
compiling os_stat.c...
compiling os_task.c...
compiling os_tick.c...
compiling os_time.c...
compiling os_tmr.c...
compiling os_var.c...
assembling os_cpu_a.s...
compiling os_cpu_c.c...
compiling bsp.c...
compiling bsp_led.c...
compiling bsp_usart1.c...
compiling bsp_ili9341_lcd.c...
compiling bsp_xpt2046_lcd.c...
compiling bsp_fsmc_sram.c...
compiling fatfs_flash_spi.c...
compiling key.c...
compiling beep.c...
compiling TouchPad.c...
compiling bsp_i2c_ee.c...
compiling bsp_i2c_gpio_ee.c...
compiling bsp_calendar.c...
compiling bsp_date.c...
compiling bsp_rtc.c...
compiling VS1053.c...
compiling bsp_sdio_sdcard.c...
compiling bsp_ov7725.c...
compiling bsp_sccb.c...
compiling sim900a.c...
compiling bsp_usart2.c...
compiling bsp_breathing.c...
compiling bsp_esp8266.c...
compiling os_app_hooks.c...
compiling common.c...
..\..\User\common.c(65): warning: #223-D: function "strlen" declared implicitly
k=strlen(src);
..\..\User\common.c: 1 warning, 0 errors
compiling app.c...
compiling appicon.c...
compiling Touch_CalibrationApp.c...
..\..\User\app\Touch_CalibrationApp.c(209): warning: #111-D: statement is unreachable
_WaitForPressedState(0);
..\..\User\app\Touch_CalibrationApp.c: 1 warning, 0 errors
compiling KEYapp.c...
compiling Breathingapp.c...
compiling ADCapp.c...
..\..\User\app\ADCapp.c(234): warning: #223-D: function "strlen" declared implicitly
GUI_DispStringInRectEx(acText, &Rect, GUI_TA_HCENTER, strlen(acText), GUI_ROTATE_CCW);
..\..\User\app\ADCapp.c: 1 warning, 0 errors
compiling EEPROMapp.c...
compiling keypadapp.c...
compiling pysearch.c...
compiling Clockapp.c...
compiling Musicapp.c...
..\..\User\app\Musicapp.c(175): warning: #223-D: function "strlen" declared implicitly
i = strlen(path);
..\..\User\app\Musicapp.c(197): warning: #223-D: function "strstr" declared implicitly
if(strstr(fn,".mp3")||strstr(fn,".MP3")||
..\..\User\app\Musicapp.c(204): warning: #223-D: function "memcpy" declared implicitly
memcpy(playlist[file_num],file_name,strlen(file_name));
..\..\User\app\Musicapp.c(272): warning: #223-D: function "strlen" declared implicitly
str_len=strlen((const char *)strbuf);
..\..\User\app\Musicapp.c(329): warning: #223-D: function "strstr" declared implicitly
if(strstr((const char*)filepath,".flac")||strstr((const char*)filepath,".FLAC"))
..\..\User\app\Musicapp.c(442): warning: #177-D: variable "timetemp" was declared but never referenced
uint32_t timetemp=0;
..\..\User\app\Musicapp.c: 6 warnings, 0 errors
compiling Recorderapp.c...
..\..\User\app\Recorderapp.c(116): warning: #177-D: variable "i" was declared but never referenced
uint16_t i;
..\..\User\app\Recorderapp.c(547): warning: #870-D: invalid multibyte character sequence
GUI_DispStringHCenterAt("杈撳叆 閲囨牱鐜? 澧炵泭",110,8);
..\..\User\app\Recorderapp.c: 2 warnings, 0 errors
compiling USBapp.c...
compiling Humitureapp.c...
compiling Cameraapp.c...
compiling Phoneapp.c...
..\..\User\app\Phoneapp.c(253): warning: #870-D: invalid multibyte character sequence
TEXT_SetText(WM_GetDialogItem(pMsg->hWin, GUI_ID_TEXT1), "閫氳瘽涓?..");
..\..\User\app\Phoneapp.c(449): warning: #870-D: invalid multibyte character sequence
TEXT_SetText(WM_GetDialogItem(hWin, GUI_ID_TEXT1),"鏂版潵鐢?..");
..\..\User\app\Phoneapp.c: 2 warnings, 0 errors
compiling Messageapp.c...
..\..\User\app\Messageapp.c(158): warning: #223-D: function "memcpy" declared implicitly
memcpy(pStat,pContent,sizeof(char)*5);
..\..\User\app\Messageapp.c(217): warning: #223-D: function "memcpy" declared implicitly
memcpy(pContacts,&pContent[5],sizeof(char)*20);
..\..\User\app\Messageapp.c(303): warning: #223-D: function "strlen" declared implicitly
sim900a_sms_utf8(pContacts,contentedit,strlen(pContacts),MessageLen);
..\..\User\app\Messageapp.c(389): warning: #870-D: invalid multibyte character sequence
TEXT_SetText(hText, "鑱旂郴浜?");
..\..\User\app\Messageapp.c(629): warning: #177-D: variable "namegbk" was declared but never referenced
char namenum[20*4]={0},str[512]={0},gbkstr[256]={0},namegbk[20]={0};
..\..\User\app\Messageapp.c: 5 warnings, 0 errors
compiling Calculatorapp.c...
compiling PICTUREapp.c...
..\..\User\app\PICTUREapp.c(144): warning: #223-D: function "strlen" declared implicitly
i = strlen(path);
..\..\User\app\PICTUREapp.c(166): warning: #223-D: function "strstr" declared implicitly
if(strstr(fn,".BMP")||strstr(fn,".bmp"))//鍒ゆ柇鏄惁mp3鎴杦av鏂囦欢
..\..\User\app\PICTUREapp.c(171): warning: #223-D: function "memcpy" declared implicitly
memcpy(BMP_Name[BMP_Num],file_name,strlen(file_name));
..\..\User\app\PICTUREapp.c(181): warning: #223-D: function "memcpy" declared implicitly
memcpy(JPG_Name[JPG_Num],file_name,strlen(file_name));
..\..\User\app\PICTUREapp.c(191): warning: #223-D: function "memcpy" declared implicitly
memcpy(GIF_Name[GIF_Num],file_name,strlen(file_name));
..\..\User\app\PICTUREapp.c: 5 warnings, 0 errors
compiling Noteapp.c...
..\..\User\app\Noteapp.c(186): warning: #223-D: function "strlen" declared implicitly
i = strlen(path);
..\..\User\app\Noteapp.c(208): warning: #223-D: function "strstr" declared implicitly
if(strstr(fn,".txt")||strstr(fn,".TXT"))
..\..\User\app\Noteapp.c(213): warning: #223-D: function "memcpy" declared implicitly
memcpy(txtlist[txtfile_num],file_name,strlen(file_name));
..\..\User\app\Noteapp.c(550): warning: #167-D: argument of type "unsigned char *" is incompatible with parameter of type "char *"
txt2buffer(txtlist[note_index]);
..\..\User\app\Noteapp.c: 4 warnings, 0 errors
compiling Browserapp.c...
..\..\User\app\Browserapp.c(197): warning: #223-D: function "strstr" declared implicitly
if(strstr(sFilename,".bmp")||strstr(sFilename,".BMP"))
..\..\User\app\Browserapp.c(252): warning: #223-D: function "strstr" declared implicitly
if(strstr(openfile,".txt")||strstr(openfile,".TXT")
..\..\User\app\Browserapp.c(327): warning: #223-D: function "strlen" declared implicitly
i = strlen(path);
..\..\User\app\Browserapp.c(399): warning: #223-D: function "strcpy" declared implicitly
strcpy(p_path,path); //澶嶅埗鐩綍鍚嶅埌鎸囬拡
..\..\User\app\Browserapp.c: 4 warnings, 0 errors
compiling W5500app.c...
..\..\User\app\W5500app.c(572): warning: #223-D: function "strlen" declared implicitly
send(SOCK_TCPC,comdata,strlen((const char *)comdata)); /*鍚慡erver鍙戦 |
|