Skip to content
Commit 218b45b7 authored by Daniel Leung's avatar Daniel Leung Committed by Anas Nashif
Browse files

logging: fix warning of array subscript having type `char`



In the count_s() function, with -Wchar-subscripts, GCC warns
about array subscript having type ‘char’ with the isalpha()
call. Since isalpha() takes an int, so do a type-cast there
to get rid of the warning.

This happens on XCC which is based on GCC 4.2.

Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent 37f94d66
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment