OVMS3-idf/components/newlib
Ivan Grokhotkov c47cc63489 newlib: change definition of assert for release builds
One common pattern of using assert function looks as follows:
    int ret = do_foo();
    assert(ret == 0);   // which reads as: “do_foo should never fail here, by design”
The problem with such code is that if ‘assert’ is removed by the preprocessor in release build,
variable ret is no longer used, and the compiler issues a warning about this.
Changing assert definition in the way done here make the variable used, from language syntax perspective.
Semantically, the variable is still unused at run time (as sizeof can be evaluated at compile time), so the compiler
can optimize things away if possible.
2017-01-17 00:49:38 +08:00
..
include newlib: change definition of assert for release builds 2017-01-17 00:49:38 +08:00
lib newlib: build with wcsftime function 2017-01-11 15:03:12 +08:00
platform_include newlib: implement time syscalls 2016-11-02 17:31:35 +08:00
test fatfs: add vfs support 2017-01-09 05:54:04 +08:00
.gitignore Initial public version 2016-08-17 23:08:22 +08:00
.gitmodules Initial public version 2016-08-17 23:08:22 +08:00
component.mk build system: Project ELF should depend on linker scripts, binary libraries 2016-12-12 15:58:53 +11:00
COPYING.NEWLIB Initial public version 2016-08-17 23:08:22 +08:00
libc_discard.list Initial public version 2016-08-17 23:08:22 +08:00
locks.c vfs and newlib: small fixes 2016-10-27 17:19:39 +08:00
Makefile.old Initial public version 2016-08-17 23:08:22 +08:00
reent_init.c vfs: code review fixes 2016-10-27 17:21:17 +08:00
syscall_table.c newlib: add "full" formatting support, add missing functions 2016-12-08 11:04:54 +08:00
syscalls.c panic handlers: Print the PC address where abort() was called, don't dump registers 2016-12-28 10:09:40 +11:00
time.c newlib: use RTC_STORE registers to keep boot time instead of RTC_SLOW_MEM 2017-01-12 14:43:34 +08:00