Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aplund opened this issue Oct 24, 2021 · 0 comments

Comments

@aplund
Copy link

aplund commented Oct 24, 2021

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: 'uart0_putc_' alias between functions of incompatible types char(char)' and 'void(char)' [-Wattribute-alias=]
480 | char uart0_putc_(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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant