From 3f1f62853877fd3d75602212c20e4d571fe124cb Mon Sep 17 00:00:00 2001 From: Aalhad Saraf Date: Thu, 23 Aug 2018 17:02:56 +0530 Subject: [PATCH] Fix build failure on ARM due to bad variable name The variable decrement was changed to decrement_ in c581f43c977f8776a56d20b7654260928e4c16b8 In -one- place, it remained as decrement and gives: In file included from src/ctx.hpp:44:0, from src/address.cpp:33: src/atomic_counter.hpp: In member function 'bool zmq::atomic_counter_t::sub(zmq::atomic_counter_t::integer_t)': src/atomic_counter.hpp:191:28: error: 'decrement' was not declared in this scope Changing it to decrement_ fixes the problem. --- src/atomic_counter.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/atomic_counter.hpp b/src/atomic_counter.hpp index e2e09d99..4f2ff584 100644 --- a/src/atomic_counter.hpp +++ b/src/atomic_counter.hpp @@ -188,7 +188,7 @@ class atomic_counter_t "+Qo"(_value) : "Ir"(decrement_), "r"(&_value) : "cc"); - return old_value - decrement != 0; + return old_value - decrement_ != 0; #elif defined ZMQ_ATOMIC_COUNTER_MUTEX sync.lock (); _value -= decrement_;