jnk0le / AVR-UART-lib

extremly light uart library for AVR 8 bit microcontrollers
MIT License
105 stars 36 forks source link

warning: 'uart0_putc_' alias between functions of incompatible types char(char)' and 'void(char)' #15

Open aplund opened 3 years ago

aplund commented 3 years ago

I get a warning emitted about incompatible types withe an alias.

$ avr-gcc -c -mmcu=atmega328p -DF_CPU=16000000 -O -o usart.o usart.c usart.c:480:14: warning: 'uart0putc' alias between functions of incompatible types char(char)' and 'void(char)' [-Wattribute-alias=] 480 | char uart0putc(char data) attribute ((alias ("uart0_putc"))); // alias for uart_putc that returns passed argument unaffected by omitting any existent rule | ^~~ usart.c:315:14: note: aliased declaration here 315 | void uart0_putc(char data) | ^~~~~~

I'm not sure if this is due to something missing on my part.