Silence GCC warning spam introduced in r205462
authormcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 6 Sep 2016 14:29:43 +0000 (14:29 +0000)
committermcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 6 Sep 2016 14:29:43 +0000 (14:29 +0000)
Rubber-stamped by Filip Pizlo.

* bytecode/Opcode.h:
(JSC::padOpcodeName):

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

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/bytecode/Opcode.h

index c7c9750..02f68e9 100644 (file)
@@ -1,3 +1,12 @@
+2016-09-06  Michael Catanzaro  <mcatanzaro@igalia.com>
+
+        Silence GCC warning spam introduced in r205462
+
+        Rubber-stamped by Filip Pizlo.
+
+        * bytecode/Opcode.h:
+        (JSC::padOpcodeName):
+
 2016-09-05  Filip Pizlo  <fpizlo@apple.com>
 
         Heap::isMarked() should use concurrent lazy flipping
index 545d8e9..4e67abd 100644 (file)
@@ -75,10 +75,19 @@ const int numOpcodeIDs = NUMBER_OF_BYTECODE_IDS + NUMBER_OF_BYTECODE_HELPER_IDS;
     const int opcodeLengths[numOpcodeIDs] = { FOR_EACH_OPCODE_ID(OPCODE_ID_LENGTH_MAP) };
 #undef OPCODE_ID_LENGTH_MAP
 
+#if COMPILER(GCC)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wtype-limits"
+#endif
+
 #define VERIFY_OPCODE_ID(id, size) COMPILE_ASSERT(id <= numOpcodeIDs, ASSERT_THAT_JS_OPCODE_IDS_ARE_VALID);
     FOR_EACH_OPCODE_ID(VERIFY_OPCODE_ID);
 #undef VERIFY_OPCODE_ID
 
+#if COMPILER(GCC)
+#pragma GCC diagnostic pop
+#endif
+
 #if ENABLE(COMPUTED_GOTO_OPCODES)
 typedef void* Opcode;
 #else