|
发表于 2012-4-13 19:47:43
|
显示全部楼层
leon11hk 发表于 2007-12-7 17:44
Compiling: Mp3.c
avr-gcc -c -mmcu=atmega64 -I. -gstabs -DF_CPU=7372800UL -Os -funsigned-char -funsi ...
Build started 13.4.2012 at 19:41:38
avr-gcc.exe -mmcu=atmega64 -Wall -gdwarf-2 -DF_CPU=14745600UL -Os -fsigned-char -MD -MP -MT mp3_player_06.o -MF dep/mp3_player_06.o.d -c ../mp3_player_06.c
../mp3_player_06.c:95: warning: initialization makes pointer from integer without a cast
../mp3_player_06.c: In function 'LrcProc':
../mp3_player_06.c:233: warning: pointer targets in passing argument 1 of 'SearchLrc' differ in signedness
../mp3_player_06.c:297: warning: pointer targets in passing argument 1 of 'strcomp_noncase' differ in signedness
../mp3_player_06.c:317: warning: pointer targets in passing argument 1 of 'strcomp_noncase' differ in signedness
../mp3_player_06.c:337: warning: pointer targets in passing argument 1 of 'strcomp_noncase' differ in signedness
../mp3_player_06.c:374: warning: pointer targets in passing argument 1 of 'strcomp_noncase' differ in signedness
../mp3_player_06.c:394: warning: pointer targets in passing argument 1 of 'strcomp_noncase' differ in signedness
../mp3_player_06.c:630: warning: passing argument 1 of 'eeprom_write_byte' makes pointer from integer without a cast
../mp3_player_06.c:656: warning: passing argument 1 of 'eeprom_write_byte' makes pointer from integer without a cast
../mp3_player_06.c:686: warning: passing argument 1 of 'eeprom_write_byte' makes pointer from integer without a cast
../mp3_player_06.c: In function 'PlayMusicwithKey':
../mp3_player_06.c:899: warning: 'return' with no value, in function returning non-void
../mp3_player_06.c:1059: warning: assignment makes integer from pointer without a cast
../mp3_player_06.c:1070: warning: assignment makes integer from pointer without a cast
../mp3_player_06.c:1225: warning: passing argument 1 of 'eeprom_read_byte' makes pointer from integer without a cast
../mp3_player_06.c: In function 'LrcProc':
../mp3_player_06.c:822: warning: control reaches end of non-void function
../mp3_player_06.c:226: warning: 'mscnt' may be used uninitialized in this function
../mp3_player_06.c:212: warning: 'LrcStruct_p_up' may be used uninitialized in this function
../mp3_player_06.c: In function 'PlayMusicwithKey':
../mp3_player_06.c:854: warning: 'buffer' may be used uninitialized in this function
../mp3_player_06.c: In function 'main':
../mp3_player_06.c:1623: warning: 'temp' may be used uninitialized in this function
avr-gcc.exe -mmcu=atmega64 -Wall -gdwarf-2 -DF_CPU=14745600UL -Os -fsigned-char -MD -MP -MT FAT.o -MF dep/FAT.o.d -c ../FAT/FAT.c
../FAT/FAT.c: In function 'WriteFolderCluster':
../FAT/FAT.c:1541: warning: passing argument 1 of 'eeprom_write_byte' makes pointer from integer without a cast
../FAT/FAT.c:1542: warning: passing argument 1 of 'eeprom_write_byte' makes pointer from integer without a cast
../FAT/FAT.c:1543: warning: passing argument 1 of 'eeprom_write_byte' makes pointer from integer without a cast
../FAT/FAT.c:1544: warning: passing argument 1 of 'eeprom_write_byte' makes pointer from integer without a cast
../FAT/FAT.c: In function 'GetFolderCluster':
../FAT/FAT.c:1550: warning: passing argument 1 of 'eeprom_read_byte' makes pointer from integer without a cast
../FAT/FAT.c:1552: warning: passing argument 1 of 'eeprom_read_byte' makes pointer from integer without a cast
../FAT/FAT.c:1554: warning: passing argument 1 of 'eeprom_read_byte' makes pointer from integer without a cast
../FAT/FAT.c:1556: warning: passing argument 1 of 'eeprom_read_byte' makes pointer from integer without a cast
../FAT/FAT.c: In function 'SearchInit':
../FAT/FAT.c:1708: warning: no return statement in function returning non-void
avr-gcc.exe -mmcu=atmega64 -Wall -gdwarf-2 -DF_CPU=14745600UL -Os -fsigned-char -MD -MP -MT MMC_SD.o -MF dep/MMC_SD.o.d -c ../MMC_SD/MMC_SD.c
avr-gcc.exe -mmcu=atmega64 -Wall -gdwarf-2 -DF_CPU=14745600UL -Os -fsigned-char -MD -MP -MT UART.o -MF dep/UART.o.d -c ../UART/UART.c
../UART/UART.c: In function 'COM_Initial':
../UART/UART.c:47: warning: passing argument 1 of 'fdevopen' from incompatible pointer type
../UART/UART.c:47: warning: passing argument 2 of 'fdevopen' from incompatible pointer type
avr-gcc.exe -mmcu=atmega64 -Wall -gdwarf-2 -DF_CPU=14745600UL -Os -fsigned-char -MD -MP -MT VS1003B.o -MF dep/VS1003B.o.d -c ../VS1003B/VS1003B.c
avr-gcc.exe -mmcu=atmega64 -Wall -gdwarf-2 -DF_CPU=14745600UL -Os -fsigned-char -MD -MP -MT LCD_GBK.o -MF dep/LCD_GBK.o.d -c ../LCD/LCD_GBK.c
../LCD/LCD_GBK.c: In function 'GBK_Ini':
../LCD/LCD_GBK.c:28: warning: pointer targets in passing argument 1 of 'FAT_Open' differ in signedness
../LCD/LCD_GBK.c:30: warning: pointer targets in passing argument 1 of 'FAT_Open' differ in signedness
../LCD/LCD_GBK.c:32: warning: pointer targets in passing argument 1 of 'FAT_Open' differ in signedness
../LCD/LCD_GBK.c:34: warning: pointer targets in passing argument 1 of 'FAT_Open' differ in signedness
avr-gcc.exe -mmcu=atmega64 -Wall -gdwarf-2 -DF_CPU=14745600UL -Os -fsigned-char -MD -MP -MT LCD.o -MF dep/LCD.o.d -c ../LCD/LCD.c
avr-gcc.exe -mmcu=atmega64 -Wall -gdwarf-2 -DF_CPU=14745600UL -Os -fsigned-char -MD -MP -MT LCD_APP.o -MF dep/LCD_APP.o.d -c ../LCD/LCD_APP.c
../LCD/LCD_APP.c: In function 'LCD_print_unicode12':
../LCD/LCD_APP.c:436: warning: pointer targets in passing argument 3 of 'Dis_GBK12' differ in signedness
../LCD/LCD_APP.c:463: warning: pointer targets in passing argument 3 of 'Dis_GBK12' differ in signedness
../LCD/LCD_APP.c: In function 'LCD_print_unicode16':
../LCD/LCD_APP.c:523: warning: pointer targets in passing argument 3 of 'Dis_GBK16' differ in signedness
../LCD/LCD_APP.c:549: warning: pointer targets in passing argument 3 of 'Dis_GBK16' differ in signedness
avr-gcc.exe -mmcu=atmega64 -Wall -gdwarf-2 -DF_CPU=14745600UL -Os -fsigned-char -MD -MP -MT LCD_ASCII.o -MF dep/LCD_ASCII.o.d -c ../LCD/LCD_ASCII.c
../LCD/LCD_ASCII.c:24: warning: missing braces around initializer
../LCD/LCD_ASCII.c:24: warning: (near initialization for 'CTAB_16[0]')
../LCD/LCD_ASCII.c:126: warning: missing braces around initializer
../LCD/LCD_ASCII.c:126: warning: (near initialization for 'CTAB_12[0]')
avr-gcc.exe -mmcu=atmega64 -Wall -gdwarf-2 -DF_CPU=14745600UL -Os -fsigned-char -MD -MP -MT ch375.o -MF dep/ch375.o.d -c ../CH375/ch375.c
avr-gcc.exe -mmcu=atmega64 -Wl,-Map=mp3_player_06.map mp3_player_06.o FAT.o MMC_SD.o UART.o VS1003B.o LCD_GBK.o LCD.o LCD_APP.o LCD_ASCII.o ch375.o -o mp3_player_06.elf
avr-objcopy -O ihex -R .eeprom mp3_player_06.elf mp3_player_06.hex
avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" --change-section-lma .eeprom=0 --no-change-warnings -O ihex mp3_player_06.elf mp3_player_06.eep || exit 0
c:\WinAVR-20070525\bin\avr-objcopy.exe: there are no sections to be copied!
avr-objdump -h -S mp3_player_06.elf > mp3_player_06.lss
AVR Memory Usage
----------------
Device: atmega64
Program: 40982 bytes (62.5% Full)
(.text + .data + .bootloader)
Data: 2334 bytes (57.0% Full)
(.data + .bss + .noinit)
Build succeeded with 42 Warnings...
那位大哥这个问题怎么解决呀,我以前用的是IAR ,第一次用这个环境,大家帮帮忙是我的问题吗?我直接是用楼主的代码,然后用studio 打开的呀,已经装了winavr 20070525 或者2010都是有警告,到底怎样消除呢? |
|