method-serial.cc: Mark varible as potentially unused to silence warning.
authorNicholas Krause <xerofoify@gmail.com>
Tue, 30 Oct 2018 15:13:26 +0000 (15:13 +0000)
committerJeff Law <law@gcc.gnu.org>
Tue, 30 Oct 2018 15:13:26 +0000 (09:13 -0600)
       * method-serial.cc: Mark varible as potentially unused
        to silence warning.

From-SVN: r265627

libitm/ChangeLog
libitm/method-serial.cc

index 940520011bf75b6ce1b2027a8a0fef2e1ba42db1..14ba0cdb41bd95ad43aa8e9532beb6dd2032a32b 100644 (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>
 
        * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
index e4804946a34deebc6e1ecb10cdc3817b7b6869a3..ab23d0b56607481b11b6114b9c7cab15b43a3d4f 100644 (file)
@@ -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);
     }