Commit 848128f7 authored by Adam Wujek's avatar Adam Wujek

lib/assert: avoid name conflicts with gcc 11.1.0 for RISCV

Signed-off-by: 's avatarAdam Wujek <dev_public@wujek.eu>
parent 9c482d8b
Pipeline #3321 passed with stage
in 1 minute and 29 seconds
......@@ -13,14 +13,14 @@ extern void panic(const char *fmt, ...)
#define assert(cond, fmt, ...) \
if (CONFIG_HAS_ASSERT && !(cond)) \
__assert(__func__, __LINE__, 1 /* forever */, fmt, ## __VA_ARGS__)
__assert_wrpc(__func__, __LINE__, 1 /* forever */, fmt, ## __VA_ARGS__)
#define assert_warn(cond, fmt, ...) \
if (CONFIG_HAS_ASSERT && !(cond)) \
__assert(__func__, __LINE__, 0 /* once */, fmt, ## __VA_ARGS__)
__assert_wrpc(__func__, __LINE__, 0 /* once */, fmt, ## __VA_ARGS__)
extern void __assert(const char *func, int line, int forever,
extern void __assert_wrpc(const char *func, int line, int forever,
const char *fmt, ...)
__attribute__((format(printf, 4, 5)));
......
......@@ -24,7 +24,7 @@ void panic(const char *fmt, ...)
}
}
void __assert(const char *func, int line, int forever,
void __assert_wrpc(const char *func, int line, int forever,
const char *fmt, ...)
{
va_list args;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment