mikaku / Fiwix

A UNIX-like kernel for the i386 architecture
https://www.fiwix.org
Other
401 stars 32 forks source link

Fix compiler warnings #84

Closed ghaerr closed 5 months ago

ghaerr commented 5 months ago

Fixes various compiler warnings and one array index bug produced by my x86_64-linux-musl-gcc (version 9.2.0) compiler on macOS.

On another note, if the optimization were changed from -O2 to -Os in Makefile, the kernel size is reduced by ~25k bytes. I have found that in most cases optimizing for size is also quicker than -O2. Is reducing produced kernel size important enough to change this setting? I have been running with -Os without problems? Let me know and I can push that change as well.

mikaku commented 5 months ago

Thank you very much.