fixbug, syntax error on gcc15

Signed-off-by: Chao Wei <chao.wei@sophgo.com>
This commit is contained in:
Chao Wei
2025-07-30 10:12:31 +08:00
parent 3745939ceb
commit 506f47f9fa
2 changed files with 5 additions and 4 deletions

View File

@@ -38,7 +38,7 @@ enum semihosting_open_mode {
#ifdef CONFIG_SERIAL_SEMIHOSTING
int semihosting_init(void);
int semihosting_enabled(void);
bool semihosting_enabled(void);
#else
static inline int semihosting_init(void) { return SBI_ENODEV; }
static inline int semihosting_enabled(void) { return 0; }