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 9405200..14ba0cd 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 e480494..ab23d0b 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);
     }