Skip to content

wchar_t warnings #3

@zhangsen

Description

@zhangsen

Got a few of these warnings when compiling it into my code based on BakingPi.

arm-none-eabi-ld --no-undefined build/_start.o build/mailbox.o build/printk.o build/fb.o b
uild/gpio.o build/font_8x8.o build/fb_test.o build/main.o build/led.o build/timer.o -Map k
ernel.map -L libs -lcsud -o build/output.elf -T kernel.ld
arm-none-eabi-ld: warning: libs/libcsud.a(device.keyboard.c.o) uses 2-byte wchar_t yet the
 output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
arm-none-eabi-ld: Warning: libs/libcsud.a(device.keyboard.c.o): Unknown EABI object attrib
ute 44

I see -fshort-wchar is used. Any reason for that? Should I include it also in my makefile?

Thanks for this driver (and your tutorial!). (Hit ctrl-enter accidentally.. Sorry for the partial submit)

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