Page 1 of 1

Bare bones warnings

Posted: Mon Oct 15, 2012 8:58 pm
by Knyght
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?

Re: Bare bones warnings

Posted: Mon Oct 15, 2012 11:03 pm
by jnc100
Thanks, I've made the relevant fixes.

Regards,
John.