From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS200651 185.165.168.0/24 X-Spam-Status: No, score=-2.9 required=3.0 tests=AWL,BAYES_00, RCVD_IN_MSPIKE_BL,RCVD_IN_MSPIKE_ZBI,RCVD_IN_XBL,RDNS_NONE,SPF_FAIL, SPF_HELO_FAIL,TO_EQ_FM_DOM_SPF_FAIL shortcircuit=no autolearn=no autolearn_force=no version=3.4.0 Received: from 80x24.org (unknown [185.165.168.196]) by dcvr.yhbt.net (Postfix) with ESMTP id 5ACBD20970 for ; Sat, 8 Apr 2017 23:16:49 +0000 (UTC) From: Eric Wong To: spew@80x24.org Subject: [PATCH] vm_core.h (rb_control_frame_t): remove "restrict" keyword Date: Sat, 8 Apr 2017 23:16:47 +0000 Message-Id: <20170408231647.8664-1-e@80x24.org> List-Id: Ruby does not require C99, so I'm removing this until a suitable compatibility macro can be implemented. Otherwise, I can't compile under gcc 4.9.2-10 on Debian 8. --- vm_core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm_core.h b/vm_core.h index abf3a0c1ec..ca792bb381 100644 --- a/vm_core.h +++ b/vm_core.h @@ -662,7 +662,7 @@ typedef struct rb_control_frame_struct { VALUE *sp; /* cfp[1] */ rb_iseq_t *iseq; /* cfp[2] */ VALUE self; /* cfp[4] / block[0] */ - VALUE *restrict ep, *restrict bp; /* cfp[5] / block[1] */ + VALUE *ep, *bp; /* cfp[5] / block[1] */ const void *block_code; /* cfp[5] / block[2] */ /* iseq or ifunc */ #if VM_DEBUG_BP_CHECK -- EW