diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-08-22 20:16:44 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-08-22 20:16:44 +0900 |
commit | 877bfd1b44e7b95ea02f6d8805a35093903cd073 (patch) | |
tree | 8c21b02e810f41a3b1c8455b4a92da186ccf14d1 /vm_exec.h | |
parent | d574b84182f4e6a17c63113abf8fe51c3b001bcc (diff) |
Suppress unused-label warnings
Diffstat (limited to 'vm_exec.h')
-rw-r--r-- | vm_exec.h | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -130,9 +130,6 @@ error ! #define NEXT_INSN() TC_DISPATCH(__NEXT_INSN__) -#define START_OF_ORIGINAL_INSN(x) start_of_##x: -#define DISPATCH_ORIGINAL_INSN(x) goto start_of_##x; - /************************************************/ #else /* no threaded code */ /* most common method */ @@ -157,9 +154,11 @@ default: \ #define NEXT_INSN() goto first -#define START_OF_ORIGINAL_INSN(x) start_of_##x: -#define DISPATCH_ORIGINAL_INSN(x) goto start_of_##x; +#endif +#ifndef START_OF_ORIGINAL_INSN +#define START_OF_ORIGINAL_INSN(x) if (0) goto start_of_##x; start_of_##x: +#define DISPATCH_ORIGINAL_INSN(x) goto start_of_##x; #endif #define VM_SP_CNT(ec, sp) ((sp) - (ec)->vm_stack) |