aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--src/imagemagick.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index bc9c88c..d2e183b 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ BINDIR = $(PREFIX)/bin
CONFIG ?= ../config
-include configs/$(CONFIG).mk
-CFLAGS ?= -O3
+CFLAGS ?= -O3 -DNDEBUG
meh: $(OBJFILES)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJFILES) $(LIBS)
diff --git a/src/imagemagick.c b/src/imagemagick.c
index 4fbb8cb..e327685 100644
--- a/src/imagemagick.c
+++ b/src/imagemagick.c
@@ -34,7 +34,7 @@ struct image *imagemagick_open(FILE *f){
asprintf(&argv[4], "ppm:fd:%i", tmpfd[1]);
argv[5] = NULL;
-#ifndef NDEBUG
+#ifdef NDEBUG
/* STFU OMFG */
freopen("/dev/null", "w", stdout);
freopen("/dev/null", "w", stderr);