Hier ein Beispiel: Compiliert mit der Optimierung -0s
Die erste Warnung ist mir klar.Code:Build started 21.5.2007 at 22:55:16 avr-gcc.exe -mmcu=atmega8 -Wall -gdwarf-2 -DF_CPU=8000000UL -Os -fsigned-char -MD -MP -MT omtasktest.o -MF dep/omtasktest.o.d -c ../omtasktest.c In file included from ../omtasktest.c:32: c:/winavr/bin/../avr/include/avr/signal.h:36:2: warning: #warning "This header file is obsolete. Use <avr/interrupt.h>." In file included from ../omtasktest.c:35: ../omttask.h:34: warning: call-clobbered register used for global register variable ../omtasktest.c: In function 'main': ../omtasktest.c:166: warning: passing argument 1 of 'OMT_add_driver' from incompatible pointer type avr-gcc.exe -mmcu=atmega8 omtasktest.o omtasuro.o omtdriver.o omtisrs.o omttask.o -o ASURO.elf avr-objcopy -O ihex -R .eeprom ASURO.elf ASURO.hex avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" --change-section-lma .eeprom=0 --no-change-warnings -O ihex ASURO.elf ASURO.eep || exit 0 c:\WinAVR\bin\avr-objcopy.exe: there are no sections to be copied! AVR Memory Usage ---------------- Device: atmega8 Program: 2250 bytes (27.5% Full) (.text + .data + .bootloader) Data: 422 bytes (41.2% Full) (.data + .bss + .noinit) Build succeeded with 3 Warnings...







Zitieren

Lesezeichen