From 539597aca5d1ee22dc980f0d3e43734329dd06e5 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 4 Apr 2025 14:29:48 +0900 Subject: [PATCH] Suppress to GCC warning with multi-line comment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` main.c: In function ‘Init_rbs_extension’: main.c:24:3: warning: multi-line comment [-Wcomment] 24 | // grep -o 'INTERN("\([^"]*\)")' ext/rbs_extension/parser.c \ | ^ ``` --- ext/rbs_extension/main.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/ext/rbs_extension/main.c b/ext/rbs_extension/main.c index 227ea3b5b..d0b4a3619 100644 --- a/ext/rbs_extension/main.c +++ b/ext/rbs_extension/main.c @@ -18,14 +18,15 @@ Init_rbs_extension(void) rbs__init_location(); rbs__init_parser(); - // Calculated based on the number of unique strings used with the `INTERN` macro in `parser.c`. - // - // ```bash - // grep -o 'INTERN("\([^"]*\)")' ext/rbs_extension/parser.c \ - // | sed 's/INTERN("\(.*\)")/\1/' \ - // | sort -u \ - // | wc -l - // ``` + /* Calculated based on the number of unique strings used with the `INTERN` macro in `parser.c`. + * + * ```bash + * grep -o 'INTERN("\([^"]*\)")' ext/rbs_extension/parser.c \ + * | sed 's/INTERN("\(.*\)")/\1/' \ + * | sort -u \ + * | wc -l + * ``` + */ const size_t num_uniquely_interned_strings = 26; rbs_constant_pool_init(RBS_GLOBAL_CONSTANT_POOL, num_uniquely_interned_strings);