From cdc74bd231fc1225b2cba465a2987fd9bab31267 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Fri, 22 Mar 2024 05:48:06 -0400 Subject: [PATCH] static_vector.h:29:17: error: writing 10 bytes into a region of size 0 [-Werror=stringop-overflow=] #6270 --- simulator/Makefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/simulator/Makefile b/simulator/Makefile index 9fce8cb178..682092fdc0 100644 --- a/simulator/Makefile +++ b/simulator/Makefile @@ -43,10 +43,7 @@ else SANITIZE = no endif -ifeq ($(SIMULATOR_DEBUG_LEVEL_OPT),) -# If you would like to debug the simulator, swap which of these lines is commented. It's commented because debug info causes a 10-15x increase in binary size. - SIMULATOR_DEBUG_LEVEL_OPT = -O0 -g -endif + SIMULATOR_DEBUG_LEVEL_OPT = -O2 # Compiler options here. ifeq ($(USE_OPT),)