ruby-changes:67211
From: Nobuyoshi <ko1@a...>
Date: Sun, 22 Aug 2021 21:46:03 +0900 (JST)
Subject: [ruby-changes:67211] 877bfd1b44 (master): Suppress unused-label warnings
https://git.ruby-lang.org/ruby.git/commit/?id=877bfd1b44 From 877bfd1b44e7b95ea02f6d8805a35093903cd073 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 22 Aug 2021 20:16:44 +0900 Subject: Suppress unused-label warnings --- vm_exec.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/vm_exec.h b/vm_exec.h index 1f2a052..10434fc 100644 --- a/vm_exec.h +++ b/vm_exec.h @@ -130,9 +130,6 @@ error ! https://github.com/ruby/ruby/blob/trunk/vm_exec.h#L130 #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: \ https://github.com/ruby/ruby/blob/trunk/vm_exec.h#L154 #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) -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/