diff --git a/vp_models.mk b/vp_models.mk index 4a9bfe8..ce109f2 100644 --- a/vp_models.mk +++ b/vp_models.mk @@ -24,6 +24,13 @@ VP_COMP_DBG_LDFLAGS=-lpulpvp-debug VP_COMP_CFLAGS += -Werror -Wfatal-errors VP_COMP_LDFLAGS += -Werror -Wfatal-errors +# This workaround disables the -Werror for detected null pointer dereferences. +# This is only necessary in the case of a buggy detection where +# invalid warnings are issued that result in a fatal build error. +VP_COMP_CFLAGS += -Wno-error=nonnull +VP_COMP_CPPFLAGS += -Wno-error=nonnull +VP_COMP_LDFLAGS += -Wno-error=nonnull + ifdef VP_USE_SYSTEMC VP_COMP_CFLAGS += -D__VP_USE_SYSTEMC -I$(SYSTEMC_HOME)/include ifdef VP_USE_SYSTEMC_DRAMSYS