Disable assertion checking

The trezor-crypto has some assertions, which are enabled unless
compiled with -DNDEBUG.  This does not make much sense for the Trezor
as could not write the assertion errors to stderr anyway.

This simple patch removes the dependency to assert, printf, etc. It
saves about 11kb flash and 2.2kb ram.
This commit is contained in:
Jochen Hoenicke 2015-02-14 11:50:12 +01:00
parent 873c0ec11a
commit 2a28680d6e
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ OBJDUMP = $(PREFIX)objdump
FLASH = st-flash
OPENOCD = openocd
OPTFLAGS = -Os -g
OPTFLAGS = -Os -g -DNDEBUG
CFLAGS += $(OPTFLAGS) \
-W \