ruby-changes:62503
From: Nobuyoshi <ko1@a...>
Date: Sat, 1 Aug 2020 18:00:04 +0900 (JST)
Subject: [ruby-changes:62503] e8ce9dfaf4 (master): `rb_encoding` is defined as `const`
https://git.ruby-lang.org/ruby.git/commit/?id=e8ce9dfaf4 From e8ce9dfaf45ed92c90548307a901de4bd7799cf7 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 1 Aug 2020 17:58:24 +0900 Subject: `rb_encoding` is defined as `const` Duplicate type qualifier is not needed. diff --git a/symbol.c b/symbol.c index 6e868d3..07cf28c 100644 --- a/symbol.c +++ b/symbol.c @@ -247,7 +247,7 @@ struct enc_synmane_type_leading_chars_tag { https://github.com/ruby/ruby/blob/trunk/symbol.c#L247 #define t struct enc_synmane_type_leading_chars_tag static struct enc_synmane_type_leading_chars_tag -enc_synmane_type_leading_chars(const char *name, long len, const rb_encoding *enc, int allowed_attrset) +enc_synmane_type_leading_chars(const char *name, long len, rb_encoding *enc, int allowed_attrset) { const char *m = name; const char *e = m + len; -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/