PongoOS icon indicating copy to clipboard operation
PongoOS copied to clipboard

error: variable '***' set but not used

Open misakazip opened this issue 2 years ago • 1 comments

I am using Manjaro Linux, a derivative of Arch Linux, on my Raspberry Pi. ld64 and cctools are already installed. An error occurs when I run the make all command. EMBEDDED_CC=clang EMBEDDED_LDFLAGS=-fuse-ld=/usr/bin/ld64 STRIP=cctools-strip make all

src/kernel/mm.c:374:14: error: variable 'vm_index_start' set but not used [-Werror,-Wunused-but-set-variable] uint32_t vm_index_start = 0; ^ src/kernel/mm.c:934:10: error: variable 'is_tt1' set but not used [-Werror,-Wunused-but-set-variable] bool is_tt1 = false; ^ 2 errors generated. make: *** [Makefile:99: build/Pongo] error 1 How can I resolve this error?

misakazip avatar Jun 25 '22 12:06 misakazip

Remove -Werror from Makefile in the top of the repository

nick-botticelli avatar Jul 07 '22 09:07 nick-botticelli