From 1f82422acce3d0311c522f94c7450bf66a85bedc Mon Sep 17 00:00:00 2001 From: Nicholas Krause Date: Tue, 30 Oct 2018 15:13:26 +0000 Subject: [PATCH] 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 --- libitm/ChangeLog | 5 +++++ libitm/method-serial.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libitm/ChangeLog b/libitm/ChangeLog index 940520011bf..14ba0cdb41b 100644 --- a/libitm/ChangeLog +++ b/libitm/ChangeLog @@ -1,3 +1,8 @@ +2018-10-30 Nicholas Krause + + * method-serial.cc: Mark varible as potentially unused + to silence warning. + 2018-08-03 Sergei Trofimovich * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid diff --git a/libitm/method-serial.cc b/libitm/method-serial.cc index e4804946a34..ab23d0b5660 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); } -- 2.30.2