Commit 7b29264f authored by Anup Patel's avatar Anup Patel Committed by Anup Patel
Browse files

lib: utils/serial: Fix semihosting compile error using LLVM

We fix the following semihosting compile error observed using LLVM:
lib/utils/serial/semihosting.c:158:12: error: result of comparison of constant -1 with expression of type 'char' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
                ret = ch > -1 ? ch : -1;
                      ~~ ^ ~~

Fixes: 7f09fba8

 ("lib: utils/serial: add semihosting support")
Signed-off-by: default avatarAnup Patel <apatel@ventanamicro.com>
Reviewed-by: default avatarXiang W <wxjstz@126.com>
Reviewed-by: default avatarBin Meng <bmeng@tinylab.org>
parent 8e9966c1
Supports Markdown
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