[前][次][番号順一覧][スレッド一覧]

ruby-changes:69468

From: Nobuyoshi <ko1@a...>
Date: Wed, 27 Oct 2021 10:17:50 +0900 (JST)
Subject: [ruby-changes:69468] 33844f3096 (master): Prefer ANSI-style prototypes over old K&R-style definitions

https://git.ruby-lang.org/ruby.git/commit/?id=33844f3096

From 33844f3096ed15eb1568d6aa333d8040ec9f074a Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 27 Oct 2021 10:16:52 +0900
Subject: Prefer ANSI-style prototypes over old K&R-style definitions

---
 missing/langinfo.c | 2 +-
 thread.c           | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/missing/langinfo.c b/missing/langinfo.c
index 9ba06b15f6a..0274a378f56 100644
--- a/missing/langinfo.c
+++ b/missing/langinfo.c
@@ -140,7 +140,7 @@ char *nl_langinfo(nl_item item) https://github.com/ruby/ruby/blob/trunk/missing/langinfo.c#L140
 
 #ifdef TEST
 #include <stdio.h>
-int main()
+int main(void)
 {
   printf("%s\n", nl_langinfo(CODESET));
   return 0;
diff --git a/thread.c b/thread.c
index 17510b32f20..1209de948ad 100644
--- a/thread.c
+++ b/thread.c
@@ -5751,7 +5751,7 @@ rb_set_coverages(VALUE coverages, int mode, VALUE me2counter) https://github.com/ruby/ruby/blob/trunk/thread.c#L5751
 }
 
 void
-rb_resume_coverages()
+rb_resume_coverages(void)
 {
     int mode = GET_VM()->coverage_mode;
     VALUE me2counter = GET_VM()->me2counter;
@@ -5765,7 +5765,7 @@ rb_resume_coverages() https://github.com/ruby/ruby/blob/trunk/thread.c#L5765
 }
 
 void
-rb_suspend_coverages()
+rb_suspend_coverages(void)
 {
     rb_remove_event_hook((rb_event_hook_func_t) update_line_coverage);
     if (GET_VM()->coverage_mode & COVERAGE_TARGET_BRANCHES) {
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]