From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id B9BBF1F47C for ; Sat, 7 Jan 2023 20:13:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1673122392; bh=TjAuf94a5IBpZyioPGREpX84rDt92tRJZGB0MGetvmE=; h=From:To:Subject:Date:From; b=dIFJ8xv640OMqRLSFgAEVdwoNPxcziFbyEk0kf1yH/wUA2mP/gIjF+pmFmgLsO+In NCVlKorvxCgwly7Dfrah/frcoeA4fKzn0gAaloWhAm5XXVNfh682XmQ3Z/E8lodkK4 U4fnvE/f3b+udRsWVWhJ1ygRwoMzLmLaDhnT7Zl0= From: Eric Wong To: mwrap-public@80x24.org Subject: [PATCH] undefine Mwrap::SourceLocation.allocate Date: Sat, 7 Jan 2023 20:13:13 +0000 Message-Id: <20230107201313.2459898-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: This quiets `undefining the allocator of T_DATA class Mwrap::SourceLocation' warnings. --- ext/mwrap/mwrap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/mwrap/mwrap.c b/ext/mwrap/mwrap.c index 6875486..160007f 100644 --- a/ext/mwrap/mwrap.c +++ b/ext/mwrap/mwrap.c @@ -1115,6 +1115,7 @@ void Init_mwrap(void) * This class is only available since mwrap 2.0.0+. */ cSrcLoc = rb_define_class_under(mod, "SourceLocation", rb_cObject); + rb_undef_alloc_func(cSrcLoc); rb_define_singleton_method(mod, "dump", mwrap_dump, -1); rb_define_singleton_method(mod, "reset", mwrap_reset, 0); rb_define_singleton_method(mod, "clear", mwrap_clear, 0);