Unreviewed, suppress warnings on GCC
authorutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 Aug 2017 00:29:03 +0000 (00:29 +0000)
committerutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 Aug 2017 00:29:03 +0000 (00:29 +0000)
* TestWebKitAPI/Tests/WTF/CheckedArithmeticOperations.cpp:
(TestWebKitAPI::CheckedArithmeticTester::run):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@220565 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/TestWebKitAPI/Tests/WTF/CheckedArithmeticOperations.cpp

index 2000164..82d23e2 100644 (file)
@@ -1,3 +1,10 @@
+2017-08-10  Yusuke Suzuki  <utatane.tea@gmail.com>
+
+        Unreviewed, suppress warnings on GCC
+
+        * TestWebKitAPI/Tests/WTF/CheckedArithmeticOperations.cpp:
+        (TestWebKitAPI::CheckedArithmeticTester::run):
+
 2017-08-10  Dan Bernstein  <mitz@apple.com>
 
         [Xcode] With Xcode 9 developer beta, everything rebuilds when switching between command-line and IDE
index 92cd4e4..b8f30c5 100644 (file)
@@ -169,14 +169,8 @@ public:
         Checked<type, OverflowCrashLogger> nvalue; // to hold a not overflowed value.
         Checked<type, OverflowCrashLogger> ovalue; // to hold an overflowed value.
 
-#if COMPILER(GCC)
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
-#endif
         bool unused;
-#if COMPILER(GCC)
-#pragma GCC diagnostic pop
-#endif
+        UNUSED_PARAM(unused);
 
         _value = 75;
         type _largeValue = 100;