Bare bones warnings
Posted: Mon Oct 15, 2012 8:58 pm
I'm probably missing something, but... in the bare bones code, it says to use -Wall and -Werror but gcc complains:
kernel.c:21:30: error: pointer targets in initialization differ in signedness [-Werror=pointer-sign]
Also about the unused variable (mbd or boot_loader_name).
Am I missing something? I always dislike having warnings, even if I were to not use -Werror.
Also, why does it say to compile without headers in the GCC cross compiler but not mention that I need to use -ffreestanding in the bare bones code? What is preferred, -ffreestanding, or compiling GCC with headers?
kernel.c:21:30: error: pointer targets in initialization differ in signedness [-Werror=pointer-sign]
Also about the unused variable (mbd or boot_loader_name).
Am I missing something? I always dislike having warnings, even if I were to not use -Werror.
Also, why does it say to compile without headers in the GCC cross compiler but not mention that I need to use -ffreestanding in the bare bones code? What is preferred, -ffreestanding, or compiling GCC with headers?