diff options
author | Nicholas Krause <xerofoify@gmail.com> | 2018-10-30 15:13:26 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2018-10-30 09:13:26 -0600 |
commit | 1f82422acce3d0311c522f94c7450bf66a85bedc (patch) | |
tree | 95fdc780100085b1e40bb3da7de0c2b646e7a718 /libitm | |
parent | 0321d9fac6eff34ef1cd91610a59070d0e9ff54d (diff) | |
download | gcc-1f82422acce3d0311c522f94c7450bf66a85bedc.tar.gz |
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')
-rw-r--r-- | libitm/ChangeLog | 5 | ||||
-rw-r--r-- | libitm/method-serial.cc | 2 |
2 files changed, 6 insertions, 1 deletions
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 <xerofoify@gmail.com> + + * method-serial.cc: Mark varible as potentially unused + to silence warning. + 2018-08-03 Sergei Trofimovich <slyfox@gentoo.org> * 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); } |