Skip to content

Commit

Permalink
core/mmu.cc: silence warning
Browse files Browse the repository at this point in the history
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 <[email protected]>
Message-Id: <[email protected]>
  • Loading branch information
nyh authored and wkozaczuk committed Jun 14, 2021
1 parent 3a7c0db commit ad9e0fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/mmu.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit ad9e0fb

Please sign in to comment.