|
Boost : |
Subject: [boost] [Lockfree] Small compilation error with gcc -Wall
From: Julien Nitard (julien.nitard_at_[hidden])
Date: 2012-03-28 03:03:40
Hi all,
The following code seems to generate an "unused variable" variable
warning with g++ -Wall.
I am working on the latest version available from git, though I am not
sure if this version is relevant.
#include <boost/lockfree/fifo.hpp>
typedef boost::lockfree::fifo<ReplicateData,
boost::lockfree::static_freelist_t> Queue;
Queue _buffer(4096);
It occurs in fifo.hpp at line 263.
Replacing
tagged_node_ptr head2 = head_.load(memory_order_relaxed);
By
head_.load(memory_order_relaxed);
Seems to do the job.
Many thanks,
Julien
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk