aboutsummaryrefslogtreecommitdiff
path: root/libitm/method-serial.cc
diff options
context:
space:
mode:
authorNicholas Krause <xerofoify@gmail.com>2018-10-30 15:13:26 +0000
committerJeff Law <law@gcc.gnu.org>2018-10-30 09:13:26 -0600
commit1f82422acce3d0311c522f94c7450bf66a85bedc (patch)
tree95fdc780100085b1e40bb3da7de0c2b646e7a718 /libitm/method-serial.cc
parent0321d9fac6eff34ef1cd91610a59070d0e9ff54d (diff)
downloadgcc-1f82422acce3d0311c522f94c7450bf66a85bedc.zip
gcc-1f82422acce3d0311c522f94c7450bf66a85bedc.tar.gz
gcc-1f82422acce3d0311c522f94c7450bf66a85bedc.tar.bz2
method-serial.cc: Mark varible as potentially unused to silence warning.
* method-serial.cc: Mark varible as potentially unused to silence warning. From-SVN: r265627
Diffstat (limited to 'libitm/method-serial.cc')
-rw-r--r--libitm/method-serial.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libitm/method-serial.cc b/libitm/method-serial.cc
index e480494..ab23d0b 100644
--- a/libitm/method-serial.cc
+++ b/libitm/method-serial.cc
@@ -306,7 +306,7 @@ GTM::gtm_thread::serialirr_mode ()
// We're already serial, so we don't need to ensure privatization safety
// for other transactions here.
gtm_word priv_time = 0;
- bool ok = disp->trycommit (priv_time);
+ bool ok __attribute__((unused)) = disp->trycommit (priv_time);
// Given that we're already serial, the trycommit better work.
assert (ok);
}