From: Sage Weil Date: Thu, 5 Jun 2014 17:43:16 +0000 (-0700) Subject: include/atomic: make 32-bit atomic64_t unsigned X-Git-Tag: v0.82~3^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1925%2Fhead;p=ceph.git include/atomic: make 32-bit atomic64_t unsigned This fixes In file included from test/perf_counters.cc:19:0: ./common/perf_counters.h: In member function ‘std::pair PerfCounters::perf_counter_data_any_d::read_avg() const’: warning: ./common/perf_counters.h:156:36: comparison between signed and unsigned integer expressions [-Wsign-compare] } while (avgcount2.read() != count); ^ Signed-off-by: Sage Weil --- diff --git a/src/include/atomic.h b/src/include/atomic.h index 55f7290ac875..88c9bfd3871e 100644 --- a/src/include/atomic.h +++ b/src/include/atomic.h @@ -122,7 +122,7 @@ namespace ceph { #if SIZEOF_AO_T == 8 typedef atomic_t atomic64_t; #else - typedef atomic_spinlock_t atomic64_t; + typedef atomic_spinlock_t atomic64_t; #endif }