On an armv7l build, we see errors like
warning: rgw/rgw_common.cc:626:16: comparison is always false due to limited range of data type [-Wtype-limits]
from code
char c1 = hex_to_num(*src++);
...
if (c1 < 0)
Force char to be signed (regardless of any weird architecture's default)
to avoid risk of this leading to misbehavior.
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
AM_COMMON_FLAGS = -Wall -D__CEPH__ -D_FILE_OFFSET_BITS=64 -D_REENTRANT \
-D_THREAD_SAFE -D__STDC_FORMAT_MACROS -D_GNU_SOURCE -rdynamic \
${WARN_TYPE_LIMITS} ${WARN_IGNORED_QUALIFIERS} -Winit-self -Wpointer-arith \
--fno-strict-aliasing
+-fno-strict-aliasing \
+-fsigned-char
AM_CFLAGS = $(AM_COMMON_FLAGS)
AM_CXXFLAGS = \