From 3536e8aa02fcaf85eea9fac7285e9e049b6443d2 Mon Sep 17 00:00:00 2001 From: akuker <34318535+akuker@users.noreply.github.com> Date: Mon, 28 Dec 2020 18:53:00 -0600 Subject: [PATCH] Added -DNDEBUG to disable the real ASSERT macro in production code (#67) Co-authored-by: Tony Kuker --- src/raspberrypi/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/raspberrypi/Makefile b/src/raspberrypi/Makefile index da996318..0460be00 100644 --- a/src/raspberrypi/Makefile +++ b/src/raspberrypi/Makefile @@ -26,8 +26,8 @@ ifeq ($(DEBUG), 1) BUILD_TYPE = Debug else # Release CFLAGS - CFLAGS += -O3 -Wall -Werror - CXXFLAGS += -O3 -Wall -Werror + CFLAGS += -O3 -Wall -Werror -DNDEBUG + CXXFLAGS += -O3 -Wall -Werror -DNDEBUG BUILD_TYPE = Release endif CFLAGS += -iquote . -MD -MP