commit | 8d5392513e3f8a072ed503b36b4410eeb4837ac7 | [log] [tgz] |
---|---|---|
author | Kumar Gala <kumar.gala@intel.com> | Thu Mar 30 16:32:47 2023 +0000 |
committer | Anas Nashif <anas.nashif@intel.com> | Fri Mar 31 07:05:07 2023 -0400 |
tree | c9df66ca6df1bccd45268f63b54dd76f8874cf78 | |
parent | 0e6c306dcec991311b11b4090430ade43d04777e [diff] |
console: fix armclang compiler warnings with is*() functions We get compile warnings of the form: error: converting the result of '<<' to a boolean; did you mean '((__aeabi_ctype_table_ + 1)[(byte)] << 28) != 0'? [-Werror,-Wint-in-bool-context] if (!isprint(byte)) { ^ Since isprint (and the other is* functions) return an int, change check to an explicit test against the return value. Signed-off-by: Kumar Gala <kumar.gala@intel.com>