aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-03-13 09:28:19 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-03-13 09:28:19 +0100
commit845746006e79d554478090126dbdab799299f9b3 (patch)
treef1810553b46f03245e95b3225066defd9b4dba84
parent0be89102741d33c75cfd90ce92ec344c1bcdd726 (diff)
downloadtoolame-dab-845746006e79d554478090126dbdab799299f9b3.tar.gz
toolame-dab-845746006e79d554478090126dbdab799299f9b3.tar.bz2
toolame-dab-845746006e79d554478090126dbdab799299f9b3.zip
Do not disable assert
-rw-r--r--Makefile2
-rw-r--r--xpad.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a3fad82..a2bc050 100644
--- a/Makefile
+++ b/Makefile
@@ -72,7 +72,7 @@ PG = -g -fomit-frame-pointer
OPTIM = -O2
# These flags are pretty much mandatory
-REQUIRED = -DNDEBUG -DINLINE=inline
+REQUIRED = -DINLINE=inline
#pick your architecture
ARCH = -march=native
diff --git a/xpad.c b/xpad.c
index 2960068..aa8b062 100644
--- a/xpad.c
+++ b/xpad.c
@@ -51,7 +51,7 @@ int xpad_init(char* pad_fifo, int pad_len)
int xpad_read_len(uint8_t* buf, int len)
{
- assert(xpad_fd != 0);
+ if (xpad_fd == 0) return 0;
ssize_t num_read = 0;