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
This commit is contained in:
Nicholas Krause 2018-10-30 15:13:26 +00:00 committed by Jeff Law
parent 0321d9fac6
commit 1f82422acc
2 changed files with 6 additions and 1 deletions

View File

@ -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> 2018-08-03 Sergei Trofimovich <slyfox@gentoo.org>
* config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid

View File

@ -306,7 +306,7 @@ GTM::gtm_thread::serialirr_mode ()
// We're already serial, so we don't need to ensure privatization safety // We're already serial, so we don't need to ensure privatization safety
// for other transactions here. // for other transactions here.
gtm_word priv_time = 0; 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. // Given that we're already serial, the trycommit better work.
assert (ok); assert (ok);
} }