Changeset 81756


Ignore:
Timestamp:
Dec 7, 2012, 1:35:25 PM (6 years ago)
Author:
timblechmann
Message:

atomic: fix testsuite compilation with -Werror=unused-but-set-variable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libs/atomic/test/ordering.cpp

    r79348 r81756  
    11//  Copyright (c) 2011 Helge Bahmann
     2//  Copyright (c) 2012 Tim Blechmann
    23//
    34//  Distributed under the Boost Software License, Version 1.0.
     
    108109}
    109110
     111volatile int backoff_dummy;
     112
    110113template<boost::memory_order store_order, boost::memory_order load_order>
    111114void
     
    145148        barrier_.wait();
    146149
    147         volatile int tmp;
    148         while(delay--) { tmp = delay; }
     150        while(delay--) { backoff_dummy = delay; }
    149151    }
    150152}
     
    188190        barrier_.wait();
    189191
    190         volatile int tmp;
    191         while(delay--) { tmp = delay; }
     192        while(delay--) { backoff_dummy = delay; }
    192193    }
    193194}
Note: See TracChangeset for help on using the changeset viewer.