From 5f6f47a688cc10116c805c657b78dc64e805ab0b Mon Sep 17 00:00:00 2001 From: mux Date: Sat, 14 Jun 2014 17:02:50 +0200 Subject: [PATCH] Make __assert_func weak --- stmhal/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stmhal/main.c b/stmhal/main.c index ec6d6bcd23..dbf3ced681 100644 --- a/stmhal/main.c +++ b/stmhal/main.c @@ -116,7 +116,8 @@ void nlr_jump_fail(void *val) { } #ifndef NDEBUG -void __assert_func(const char *file, int line, const char *func, const char *expr) { +void __attribute__((weak)) + __assert_func(const char *file, int line, const char *func, const char *expr) { (void)func; printf("Assertion '%s' failed, at file %s:%d\n", expr, file, line); __fatal_error("");