From: Sage Weil Date: Thu, 16 May 2013 06:02:10 +0000 (-0700) Subject: Makefle: force char to be signed X-Git-Tag: v0.64~121 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=769a16d6674122f3b537f03e17514ad974bf2a2f;p=ceph.git Makefle: force char to be signed 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 Reviewed-by: Dan Mick --- diff --git a/src/Makefile.am b/src/Makefile.am index cb8dbb810c2d..bbd38e618434 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1144,7 +1144,8 @@ CLEANFILES += ceph_ver.h sample.fetch_config 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 = \