Skip to content

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

@aplund

Description

@aplund

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions