Bare bones warnings

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Knyght
Posts: 7
Joined: Mon Oct 15, 2012 8:52 pm
Location: UK

Bare bones warnings

Post 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?
jnc100
Member
Member
Posts: 775
Joined: Mon Apr 09, 2007 12:10 pm
Location: London, UK
Contact:

Re: Bare bones warnings

Post by jnc100 »

Thanks, I've made the relevant fixes.

Regards,
John.
Post Reply