aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Hawthorn <jhawthor@uvic.ca>2009-08-31 01:32:38 -0700
committerJohn Hawthorn <jhawthor@uvic.ca>2009-08-31 01:32:38 -0700
commit4f44392c4d76351ca9280be7c8d821e1c9f10ff9 (patch)
tree91bf4617005de7940fc0e469ba98c162bfe3d26f
parent403bc87fc4cd16624ddd12e3a4b00256b8295528 (diff)
downloadmirror-meh-4f44392c4d76351ca9280be7c8d821e1c9f10ff9.tar.gz
mirror-meh-4f44392c4d76351ca9280be7c8d821e1c9f10ff9.tar.bz2
mirror-meh-4f44392c4d76351ca9280be7c8d821e1c9f10ff9.zip
whoops. proper NDEBUG
-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);