BOARD = qemu
KERNEL = vmlinuz-virt
INITRD = initramfs-virt.gz
ROM = boards/qemu/qemu.rom
GenFfs.c: In the "GetAlignmentFromFile" function:
GenFfs.c:545:5: error: the "InFileHandle" pointer is used after "fclose" [-Werror=use-after-free]
545 | Error(NULL, 0, 4001, "Resource", "memory cannot be allocated of %s", InFileHandle);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GenFfs.c:544:5: note: call "fclose" here
544 | fclose (InFileHandle);
| ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings are treated as errors
make[3]: *** [../Makefiles/footer.makefile:27: GenFfs.o] Error 1