From 1e3b927731104629cae9682b55b8d540ef8af12f Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 5 Jun 2014 10:43:16 -0700 Subject: [PATCH] include/atomic: make 32-bit atomic64_t unsigned MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 (cherry picked from commit 2081c992bbe3a83d711f465634d19c011d28ea3e) --- src/include/atomic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/atomic.h b/src/include/atomic.h index 55f7290ac8757..88c9bfd3871e1 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 } -- 2.39.5