gcc 11 warns about the MMU code writing 4096 byte to an area with 0 bytes. I am guessing this is a false alarm, but the code is too convoluted for me to prove it :-( So for now, let's just slience this build error.
Signed-off-by: Nadav Har'El <n...@scylladb.com> --- core/mmu.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/mmu.cc b/core/mmu.cc index cd2cd550..3125a8aa 100644 --- a/core/mmu.cc +++ b/core/mmu.cc @@ -29,6 +29,10 @@ #include <osv/rwlock.h> #include <numeric> +// FIXME: Without this pragma, we get a lot of warnings that I don't know +// how to explain or fix. For now, let's just ignore them :-( +#pragma GCC diagnostic ignored "-Wstringop-overflow" + extern void* elf_start; extern size_t elf_size; -- 2.31.1 -- You received this message because you are subscribed to the Google Groups "OSv Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to osv-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/osv-dev/20210614062057.1998552-11-nyh%40scylladb.com.