diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-03-13 09:28:19 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-03-13 09:28:19 +0100 |
commit | 845746006e79d554478090126dbdab799299f9b3 (patch) | |
tree | f1810553b46f03245e95b3225066defd9b4dba84 | |
parent | 0be89102741d33c75cfd90ce92ec344c1bcdd726 (diff) | |
download | toolame-dab-845746006e79d554478090126dbdab799299f9b3.tar.gz toolame-dab-845746006e79d554478090126dbdab799299f9b3.tar.bz2 toolame-dab-845746006e79d554478090126dbdab799299f9b3.zip |
Do not disable assert
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | xpad.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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 @@ -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; |