[#11952] NORETURN — "Nobuyoshi.Nakada" <nobu.nakada@...>

なかだです。

24 messages 2001/01/10
[#11956] Re: NORETURN — WATANABE Hirofumi <eban@...> 2001/01/10

わたなべです.

[#11957] Re: NORETURN — matz@... (Yukihiro Matsumoto) 2001/01/10

まつもと ゆきひろです

[#11958] Re: NORETURN — WATANABE Hirofumi <eban@...> 2001/01/10

わたなべです.

[#11959] CVS branches (Re: Re: NORETURN) — matz@... (Yukihiro Matsumoto) 2001/01/10

[#12087] string#index, gsub, []= のバグ? — Beyond <beyond@...>

18 messages 2001/01/27
[#12091] Re: string#index, gsub, []= のバグ? — matz@... (Yukihiro Matsumoto) 2001/01/27

まつもと ゆきひろです

[ruby-dev:11987] [PATCH] warnings

From: "Nobuyoshi.Nakada" <nobu.nakada@...>
Date: 2001-01-11 15:07:30 UTC
List: ruby-dev #11987
なかだです。

  1.7 でまだ少々 warning が出るのでパッチです。この中で最後の 
missing/vsnprintf.c がよく分からないのですが、stddef.h を今の位置で
include しているのはなにか訳があるのでしょうか。


Index: io.c
===================================================================
RCS file: /home/nokada/cvs/ruby/io.c,v
retrieving revision 1.71
diff -p -u -2 -r1.71 io.c
--- io.c	2000/12/26 08:32:35	1.71
+++ io.c	2001/01/10 07:46:05
@@ -2284,5 +2284,5 @@ prep_stdio(f, mode, klass)
 }
 
-static VALUE
+static void
 prep_path(io, path)
     VALUE io;
Index: prec.c
===================================================================
RCS file: /home/nokada/cvs/ruby/prec.c,v
retrieving revision 1.5
diff -p -u -2 -r1.5 prec.c
--- prec.c	2000/05/01 09:41:25	1.5
+++ prec.c	2001/01/10 07:51:13
@@ -44,5 +44,5 @@ prec_prec_f(x)
 static VALUE
 prec_induced_from(module, x)
-    
+    VALUE module, x;
 {
     rb_raise(rb_eTypeError, "undefined conversion from %s into %s",
Index: re.c
===================================================================
RCS file: /home/nokada/cvs/ruby/re.c,v
retrieving revision 1.35
diff -p -u -2 -r1.35 re.c
--- re.c	2001/01/09 07:26:17	1.35
+++ re.c	2001/01/10 08:54:09
@@ -1029,4 +1029,5 @@ rb_reg_initialize_m(argc, argv, self)
 	rb_reg_initialize(self, p, len, flag);
     }
+    return self;
 }
 
Index: missing/strftime.c
===================================================================
RCS file: /home/nokada/cvs/ruby/missing/strftime.c,v
retrieving revision 1.3
diff -p -u -2 -r1.3 strftime.c
--- missing/strftime.c	1999/10/04 04:51:08	1.3
+++ missing/strftime.c	2001/01/10 05:45:17
@@ -114,10 +114,4 @@ extern char *strchr();
 #endif
 
-#ifdef __GNUC__
-#define inline	__inline__
-#else
-#define inline	/**/
-#endif
-
 #define range(low, item, hi)	max(low, min(item, hi))
 
Index: missing/vsnprintf.c
===================================================================
RCS file: /home/nokada/cvs/ruby/missing/vsnprintf.c,v
retrieving revision 1.4
diff -p -u -2 -r1.4 vsnprintf.c
--- missing/vsnprintf.c	2000/12/18 09:46:21	1.4
+++ missing/vsnprintf.c	2001/01/09 05:38:50
@@ -109,7 +109,5 @@
 #endif /* People who don't like const sys_error */
 
-#if defined NT && !defined __MINGW32__
-typedef long size_t;
-#endif
+#include <stddef.h>
 
 #ifndef NULL
@@ -1095,6 +1093,4 @@ vsnprintf(str, n, fmt, ap)
 static char sccsid[] = "@(#)snprintf.c	8.1 (Berkeley) 6/4/93";
 #endif /* LIBC_SCCS and not lint */
-
-#include <stddef.h>
 
 #if defined(__STDC__)


-- 
--- 僕の前にBugはない。
--- 僕の後ろにBugはできる。
    中田 伸悦

In This Thread

Prev Next